} else {
fptr.seek(context, pos + size, PosixShim.SEEK_SET);
}
}
} finally {
if (locked) fptr.unlock();
}
}
private static long transfer(ThreadContext context, ReadableByteChannel from, FileChannel to, long length, long position) throws IOException {
// handle large files on 32-bit JVMs