·TFTPUtil ReadMe For additions, changes, and fixes please see the ChangeLog License information deta

源代码在线查看: transferto.java.svn-base

软件大小: 764 K
上传用户: woshishenb
关键词: information ChangeLog additions TFTPUtil
下载地址: 免注册下载 普通下载 VIP

相关代码

				import java.io.*;
				import java.nio.*;
				import java.nio.channels.*;
				public class TransferTo {
				  public static void main(String[] args) throws Exception {
				    if(args.length != 2) {
				      System.out.println("arguments: sourcefile destfile");
				      System.exit(1);
				    }
				    FileChannel 
				      in = new FileInputStream(args[0]).getChannel(),
				      out = new FileOutputStream(args[1]).getChannel();
				    in.transferTo(0, in.size(), out);
				    // Or:
				    // out.transferFrom(in, 0, in.size());
				  }
				}			

相关资源