![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java-NIO
With__Sunshine
这个作者很懒,什么都没留下…
展开
-
(1)NIO FileChannel文件拷贝
package com.demo.nio; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.c...原创 2018-10-26 10:30:29 · 154 阅读 · 0 评论 -
(2)NioServer
package com.demo.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java...转载 2018-10-26 11:04:15 · 118 阅读 · 0 评论 -
(3) NioClient
import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.SocketCha...转载 2018-10-26 11:09:07 · 304 阅读 · 0 评论 -
图解nio bytebuffer
https://blog.csdn.net/hnjdx814733170/article/details/50955294转载 2018-11-14 16:18:49 · 154 阅读 · 0 评论