Package org.apache.abdera.i18n.text.io
Class PeekAheadInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.PushbackInputStream
org.apache.abdera.i18n.text.io.DynamicPushbackInputStream
org.apache.abdera.i18n.text.io.RewindableInputStream
org.apache.abdera.i18n.text.io.PeekAheadInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
A version of RewindableInputStream that provides methods for peeking ahead in the stream (equivalent to read()
followed by an appropriate unread()
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.PeekAheadInputStream(InputStream in, int initialSize) Deprecated. -
Method Summary
Methods inherited from class org.apache.abdera.i18n.text.io.RewindableInputStream
position, read, read, rewind, rewind, rewind, skipMethods inherited from class org.apache.abdera.i18n.text.io.DynamicPushbackInputStream
clear, shrink, unread, unreadMethods inherited from class java.io.PushbackInputStream
available, close, mark, markSupported, reset, transferTo, unreadMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes
-
Constructor Details
-
PeekAheadInputStream
Deprecated. -
PeekAheadInputStream
Deprecated.
-
-
Method Details
-
peek
Deprecated.Peek the next byte in the stream- Throws:
IOException
-
peek
Deprecated.Peek the next bytes in the stream. Returns the number of bytes peeked. Will return -1 if the end of the stream is reached- Throws:
IOException
-
peek
Deprecated.Peek the next bytes in the stream. Returns the number of bytes peeked. Will return -1 if the end of the stream is reached- Throws:
IOException
-