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