Go to most recent revision |
Blame |
Last modification |
View Log
| RSS feed
package de.viathinksoft.immortable.genX;
import java.io.*;
import java.nio.channels.*;
/**
*
* @see http://www.rgagnon.com/javadetails/java-0064.html
*
*/
public class FileUtils {
try {
inChannel.transferTo(0, inChannel.size(), outChannel);
throw e;
} finally {
if (inChannel != null)
inChannel.close();
if (outChannel != null)
outChannel.close();
}
}
FileUtils.
copyFile(new File(args
[0]),
new File(args
[1]));
}
}