类的使用
com.weicoder.common.binary.Buffer
使用Buffer的程序包
-
com.weicoder.common.binary中Buffer的使用
修饰符和类型方法说明static BufferBuffer.allocate(int capacity) 声明个字节缓存static BufferBuffer.empty()获得一个空字节缓存static BufferBuffer.wrap(byte[] array) 根据传入的字节数组获得字节缓存static BufferBuffer.wrap(byte[] array, int offset, int length) 根据传入的字节数组获得字节缓存类型变量类型为Buffer的com.weicoder.common.binary中的方法参数 -
com.weicoder.common.io中Buffer的使用
类型变量类型为Buffer的com.weicoder.common.io中的方法参数修饰符和类型方法说明static long转换文件 读取文件并写入指定文件 按缓冲字节写入static long转换文件 读取文件并写入指定文件 按缓冲字节写入longAIO.read(InputStream in, int buff, boolean isClose, Calls.EoV<Buffer> call) longBIO.read(InputStream in, int buff, boolean isClose, Calls.EoV<Buffer> call) static long以流模式分段读取文件 使用默认IO缓冲和默认IO模式static long以流模式分段读取文件 使用默认IO缓冲和默认IO模式static longIOUtil.read(InputStream in, int buff, boolean isClose, Calls.EoV<Buffer> call) 读取出输入流的所有字节longNIO.read(InputStream in, int buff, boolean isClose, Calls.EoV<Buffer> call) longAIO.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) longAIO.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) longBIO.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) longBIO.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) static longChannelUtil.write(ReadableByteChannel rbc, WritableByteChannel wbc, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) 读取并写入数据static longChannelUtil.write(ReadableByteChannel rbc, WritableByteChannel wbc, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) 读取并写入数据static longChannelUtil.write(ReadableByteChannel rbc, WritableByteChannel wbc, int buff, Calls.EoR<Buffer, Buffer> call) 读取并写入数据 默认不关闭流static longChannelUtil.write(ReadableByteChannel rbc, WritableByteChannel wbc, int buff, Calls.EoR<Buffer, Buffer> call) 读取并写入数据 默认不关闭流static longIOUtil.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) 读取并写入数据static longIOUtil.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) 读取并写入数据static longIOUtil.write(OutputStream out, InputStream in, Calls.EoR<Buffer, Buffer> call) 读取并写入数据static longIOUtil.write(OutputStream out, InputStream in, Calls.EoR<Buffer, Buffer> call) 读取并写入数据longNIO.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call) longNIO.write(OutputStream out, InputStream in, int buff, boolean isClose, Calls.EoR<Buffer, Buffer> call)