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