Package org.apache.camel.util
Class SkipLastByteInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.apache.camel.util.SkipLastByteInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An
InputStream
that skips the last byte of the underlying delegate InputStream
if the last byte is
equal to the given matchLast
value.-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionSkipLastByteInputStream
(InputStream delegate, byte matchLast) SkipLastByteInputStream
(InputStream delegate, int size, byte matchLast) -
Method Summary
Methods inherited from class java.io.BufferedInputStream
available, close
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
SkipLastByteInputStream
-
SkipLastByteInputStream
-
-
Method Details
-
read
- Overrides:
read
in classBufferedInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classBufferedInputStream
- Throws:
IOException
-
markSupported
- Overrides:
markSupported
in classBufferedInputStream
-
skip
- Overrides:
skip
in classBufferedInputStream
-
mark
- Overrides:
mark
in classBufferedInputStream
-
reset
- Overrides:
reset
in classBufferedInputStream
-