public class HeadBufferInputStream extends FilterInputStream
in| Constructor and Description |
|---|
HeadBufferInputStream(InputStream in,
int headSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getHeadBuffer()
Returns the actual buffer used for accumulating the first few bytes
in the stream.
|
long |
getReadCount()
Returns the total number of bytes so far read from the base stream.
|
void |
mark(int readlimit) |
boolean |
markSupported()
Mark/reset is not supported.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, closepublic HeadBufferInputStream(InputStream in, int headSize)
in - base input streamheadSize - size of head bufferpublic byte[] getHeadBuffer()
public long getReadCount()
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStreamCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.