public static class CachedInputStream.AtBuffers extends Object
| 构造器和说明 |
|---|
AtBuffers() |
AtBuffers(InputStream in,
int limit)
使用缓冲区池读取输入流的数据进行暂存
|
public AtBuffers()
public AtBuffers(InputStream in, int limit) throws IOException
in - 输入流limit - 若>0则为限制读取的字节数IOException - IO异常时抛出public int input(InputStream in, int limit) throws IOException
in - 输入流limit - 若>0则为限制读取的字节数IOException - IO异常时抛出public int size()
public byte[] toArray()
public byte[] toArray(byte[] bs,
int offset)
public void close()
Copyright © 2022. All rights reserved.