Package org.apache.abdera.i18n.text.io
Class DynamicPushbackInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.PushbackInputStream
org.apache.abdera.i18n.text.io.DynamicPushbackInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
RewindableInputStream
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
PushbackInputStream implementation that performs dynamic resizing of the unread buffer
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DynamicPushbackInputStream
(InputStream in, int initialSize) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
clear()
Deprecated.Clear the bufferint
read()
Deprecated.int
read
(byte[] b, int off, int len) Deprecated.int
shrink()
Deprecated.Shrink the buffer.long
skip
(long n) Deprecated.void
unread
(byte[] b, int off, int len) Deprecated.void
unread
(int b) Deprecated.Methods inherited from class java.io.PushbackInputStream
available, close, mark, markSupported, reset, transferTo, unread
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes
-
Constructor Details
-
DynamicPushbackInputStream
Deprecated. -
DynamicPushbackInputStream
Deprecated.
-
-
Method Details
-
clear
public int clear()Deprecated.Clear the buffer -
shrink
public int shrink()Deprecated.Shrink the buffer. This will reclaim currently unused space in the buffer, reducing memory but potentially increasing the cost of resizing the buffer -
unread
Deprecated.- Overrides:
unread
in classPushbackInputStream
- Throws:
IOException
-
unread
Deprecated.- Overrides:
unread
in classPushbackInputStream
- Throws:
IOException
-
read
Deprecated.- Overrides:
read
in classPushbackInputStream
- Throws:
IOException
-
read
Deprecated.- Overrides:
read
in classPushbackInputStream
- Throws:
IOException
-
skip
Deprecated.- Overrides:
skip
in classPushbackInputStream
- Throws:
IOException
-