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
ConstructorsConstructorDescriptionSkipLastByteInputStream(InputStream delegate, byte matchLast) SkipLastByteInputStream(InputStream delegate, int size, byte matchLast) -
Method Summary
Methods inherited from class java.io.BufferedInputStream
available, closeMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
SkipLastByteInputStream
-
SkipLastByteInputStream
-
-
Method Details
-
read
- Overrides:
readin classBufferedInputStream- Throws:
IOException
-
read
- Overrides:
readin classBufferedInputStream- Throws:
IOException
-
markSupported
- Overrides:
markSupportedin classBufferedInputStream
-
skip
- Overrides:
skipin classBufferedInputStream
-
mark
- Overrides:
markin classBufferedInputStream
-
reset
- Overrides:
resetin classBufferedInputStream
-