@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() |
read
public 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 Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public byte[] getReadBytesFromBuffer()
public byte[] getUnreadBytesFromBuffer()
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public long getReadBytes()
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public void reset()
reset
in class FilterInputStream
public void mark(int readlimit)
mark
in class FilterInputStream
Copyright © 2018 SPF4J. All rights reserved.