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
 
 public class DynamicPushbackInputStream extends PushbackInputStream 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.PushbackInputStreambuf, pos
 - 
Fields inherited from class java.io.FilterInputStreamin
 
- 
 - 
Constructor SummaryConstructors Constructor Description DynamicPushbackInputStream(InputStream in)DynamicPushbackInputStream(InputStream in, int initialSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intclear()Clear the bufferintread()intread(byte[] b, int off, int len)intshrink()Shrink the buffer.longskip(long n)voidunread(byte[] b, int off, int len)voidunread(int b)- 
Methods inherited from class java.io.PushbackInputStreamavailable, close, mark, markSupported, reset, unread
 - 
Methods inherited from class java.io.FilterInputStreamread
 - 
Methods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
 
- 
 
- 
- 
- 
Constructor Detail- 
DynamicPushbackInputStreampublic DynamicPushbackInputStream(InputStream in) 
 - 
DynamicPushbackInputStreampublic DynamicPushbackInputStream(InputStream in, int initialSize) 
 
- 
 - 
Method Detail- 
clearpublic int clear() Clear the buffer
 - 
shrinkpublic 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
 - 
unreadpublic void unread(byte[] b, int off, int len) throws IOException- Overrides:
- unreadin class- PushbackInputStream
- Throws:
- IOException
 
 - 
unreadpublic void unread(int b) throws IOException- Overrides:
- unreadin class- PushbackInputStream
- Throws:
- IOException
 
 - 
readpublic int read() throws IOException- Overrides:
- readin class- PushbackInputStream
- Throws:
- IOException
 
 - 
readpublic int read(byte[] b, int off, int len) throws IOException- Overrides:
- readin class- PushbackInputStream
- Throws:
- IOException
 
 - 
skippublic long skip(long n) throws IOException- Overrides:
- skipin class- PushbackInputStream
- Throws:
- IOException
 
 
- 
 
-