调用方式 FileChannel dstChannel; FileChannel srcChannel; dstChannel.transferFrom(srcChannel,0,srcChannel.size()); srcChannel.transferTo(0,srcChannel.size(),dstChannel); 函数原型: transferFrom(ReadableByteChannel src,long position, long count) transferTo(long…