类 AsynChannelUtil
java.lang.Object
com.weicoder.common.io.AsynChannelUtil
- 直接已知子类:
U.AC
aio读写字节流
- 作者:
- wudi
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static byte[]读取出通道的所有字节static byte[]read(AsynchronousByteChannel asc, boolean isClose) 读取出通道的所有字节static intwrite(AsynchronousByteChannel asc, byte[] b) 把字节流写入到aio中static intwrite(AsynchronousByteChannel asc, byte[] b, boolean isClose) 把字节流写入到aio中
-
构造器详细资料
-
AsynChannelUtil
public AsynChannelUtil()
-
-
方法详细资料
-
read
读取出通道的所有字节- 参数:
asc- 通道- 返回:
- 字节数组
-
read
读取出通道的所有字节- 参数:
asc- 通道isClose- 是否关闭流- 返回:
- 字节数组
-
write
把字节流写入到aio中- 参数:
asc- 写入通道b- 字节数组- 返回:
- true false
-
write
把字节流写入到aio中- 参数:
asc- 写入通道b- 字节数组isClose- 是否关闭流- 返回:
- true false
-