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:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
RewindableInputStream
@Deprecated(since="2021-07-29") public class DynamicPushbackInputStream extends java.io.PushbackInputStreamDeprecated.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
Constructors Constructor Description DynamicPushbackInputStream(java.io.InputStream in)Deprecated.DynamicPushbackInputStream(java.io.InputStream in, int initialSize)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intclear()Deprecated.Clear the bufferintread()Deprecated.intread(byte[] b, int off, int len)Deprecated.intshrink()Deprecated.Shrink the buffer.longskip(long n)Deprecated.voidunread(byte[] b, int off, int len)Deprecated.voidunread(int b)Deprecated.-
Methods inherited from class java.io.PushbackInputStream
available, close, mark, markSupported, reset, unread
-
-
-
-
Method Detail
-
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
public void unread(byte[] b, int off, int len) throws java.io.IOExceptionDeprecated.- Overrides:
unreadin classjava.io.PushbackInputStream- Throws:
java.io.IOException
-
unread
public void unread(int b) throws java.io.IOExceptionDeprecated.- Overrides:
unreadin classjava.io.PushbackInputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOExceptionDeprecated.- Overrides:
readin classjava.io.PushbackInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOExceptionDeprecated.- Overrides:
readin classjava.io.PushbackInputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOExceptionDeprecated.- Overrides:
skipin classjava.io.PushbackInputStream- Throws:
java.io.IOException
-
-