@ParametersAreNonnullByDefault @CleanupObligation public final class MemorizingBufferedInputStream extends FilterInputStream
in| Constructor and Description |
|---|
MemorizingBufferedInputStream(InputStream in) |
MemorizingBufferedInputStream(InputStream in,
Charset charset) |
MemorizingBufferedInputStream(InputStream in,
int size) |
MemorizingBufferedInputStream(InputStream in,
int size,
int readSize,
SizedRecyclingSupplier<byte[]> bufferProvider,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getReadBytes() |
byte[] |
getReadBytesFromBuffer() |
byte[] |
getUnreadBytesFromBuffer() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
readpublic MemorizingBufferedInputStream(InputStream in)
public MemorizingBufferedInputStream(InputStream in, int size)
public MemorizingBufferedInputStream(InputStream in, Charset charset)
public MemorizingBufferedInputStream(InputStream in, int size, int readSize, SizedRecyclingSupplier<byte[]> bufferProvider, @Nullable Charset charset)
@DischargesObligation
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic byte[] getReadBytesFromBuffer()
public byte[] getUnreadBytesFromBuffer()
public int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic long getReadBytes()
public long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void reset()
reset in class FilterInputStreampublic void mark(int readlimit)
mark in class FilterInputStreamCopyright © 2018 SPF4J. All rights reserved.