/guava/android/guava/src/com/google/common/io/ByteStreams.java
FileChannel sourceChannel = ( FileChannel) from; if ( from instanceof FileChannel) {checkNotNull( to) ;
checkNotNull ( to ) ; if ( from instanceof FileChannel ) { FileChannel sourceChannel = ( FileChannel ) from;
} return total; } @CanIgnoreReturnValue public static long copy(ReadableByteChannel from, WritableByteChannel to) throws IOException { checkNotNull(from); <extra_id_0> long oldPosition = sourceChannel.position(); long position = oldPosition; long copied; do { copied = sourceChannel.transferTo(position, ZERO_COPY_CHUNK_SIZE, to); position += copied;