Skip to content

Instantly share code, notes, and snippets.

Created Sep 21, 2012
What would you like to do?
IOCipher copying using file channels
FileOutputStream os = null; is = null;
try {
os = new FileOutputStream("/test_file");
is = new;
FileChannel sourceFileChannel = is.getChannel();
IOCipherFileChannel destinationFileChannel = os.getChannel();
sourceFileChannel.transferTo(0, sourceFileChannel.size(), destinationFileChannel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment