Package org.apache.myfaces.util.lang
Class DynamicPushbackInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.PushbackInputStream
org.apache.myfaces.util.lang.DynamicPushbackInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
NOTE: Copy of org.apache.abdera.i18n.text.io.DynamicPushbackInputStream
PushbackInputStream implementation that performs dynamic resizing of the unread buffer
-
Field Summary
Fields inherited from class java.io.PushbackInputStream
buf, pos
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.PushbackInputStream
available, close, mark, markSupported, reset, unread
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
DynamicPushbackInputStream
-
DynamicPushbackInputStream
-
-
Method Details
-
clear
public int clear()Clear the buffer -
shrink
public int shrink()Shrink the buffer. This will reclaim currently unused space in the buffer, reducing memory but potentially increasing the cost of resizing the buffer -
unread
- Overrides:
unread
in classPushbackInputStream
- Throws:
IOException
-
unread
- Overrides:
unread
in classPushbackInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classPushbackInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classPushbackInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classPushbackInputStream
- Throws:
IOException
-