FileDocCategorySizeDatePackage
CopyChannels3.javaAPI DocExample437Sat Apr 23 22:35:28 BST 2005None

CopyChannels3

public class CopyChannels3 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		String fromFileName = args[0];
		String toFileName = args[1];
		FileChannel in = new FileInputStream( fromFileName ).getChannel();
		FileChannel out = new FileOutputStream( toFileName ).getChannel();
		in.transferTo( 0, (int)in.size(), out );
		in.close();
		out.close();