public class SkipLastByteInputStream extends BufferedInputStream
InputStream that skips the last byte of the underlying delegate InputStream if the last byte is
equal to the given matchLast value.in| Constructor and Description |
|---|
SkipLastByteInputStream(InputStream delegate,
byte matchLast) |
SkipLastByteInputStream(InputStream delegate,
int size,
byte matchLast) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
availablereadpublic SkipLastByteInputStream(InputStream delegate, byte matchLast)
public SkipLastByteInputStream(InputStream delegate, int size, byte matchLast)
public int read() throws IOException
read in class BufferedInputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BufferedInputStreamIOExceptionpublic int read(byte[] buffer, int off, int len) throws IOException
read in class BufferedInputStreamIOExceptionpublic boolean markSupported()
markSupported in class BufferedInputStreampublic long skip(long n)
skip in class BufferedInputStreampublic void mark(int readlimit)
mark in class BufferedInputStreampublic void reset()
reset in class BufferedInputStreamApache Camel