https://www.linuxjournal.com/article/6345?page=0,1
https://www.jianshu.com/p/fad3339e3448
File file = new File("fileName");
RandomAccessFile raf = new RandomAccessFile(file, "rw");
FileChannel fileChannel = raf.getChannel();
SocketChannel socketChannel = SocketChannel.open(new InetSocketAddress("host",port));
// 不拷贝至用户空间也不会从读缓冲区拷贝至网络缓冲区
fileChannel.transferTo(0, fileChannel.size(), socketChannel);