org.apache.myfaces.commons.resourcehandler.util.io
Class DynamicPushbackInputStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       java.io.FilterInputStream
java.io.FilterInputStream
           java.io.PushbackInputStream
java.io.PushbackInputStream
               org.apache.myfaces.commons.resourcehandler.util.io.DynamicPushbackInputStream
org.apache.myfaces.commons.resourcehandler.util.io.DynamicPushbackInputStream
- All Implemented Interfaces: 
- java.io.Closeable
- public class DynamicPushbackInputStream 
- extends java.io.PushbackInputStream
NOTE: Copy of org.apache.abdera.i18n.text.io.DynamicPushbackInputStream
 
 PushbackInputStream implementation that performs dynamic resizing of the unread buffer
 
| Fields inherited from class java.io.PushbackInputStream | 
| buf, pos | 
 
| Fields inherited from class java.io.FilterInputStream | 
| in | 
 
 
| Method Summary | 
|  int | clear()Clear the buffer
 | 
|  int | read()
 | 
|  int | read(byte[] b,
     int off,
     int len)
 | 
|  int | shrink()Shrink the buffer.
 | 
|  long | skip(long n)
 | 
|  void | unread(byte[] b,
       int off,
       int len)
 | 
|  void | unread(int b)
 | 
 
| 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.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DynamicPushbackInputStream
public DynamicPushbackInputStream(java.io.InputStream in)
DynamicPushbackInputStream
public DynamicPushbackInputStream(java.io.InputStream in,
                                  int initialSize)
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
public void unread(byte[] b,
                   int off,
                   int len)
            throws java.io.IOException
- 
- Overrides:
- unreadin class- java.io.PushbackInputStream
 
- 
- Throws:
- java.io.IOException
 
unread
public void unread(int b)
            throws java.io.IOException
- 
- Overrides:
- unreadin class- java.io.PushbackInputStream
 
- 
- Throws:
- java.io.IOException
 
read
public int read()
         throws java.io.IOException
- 
- Overrides:
- readin class- java.io.PushbackInputStream
 
- 
- Throws:
- java.io.IOException
 
read
public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
- 
- Overrides:
- readin class- java.io.PushbackInputStream
 
- 
- Throws:
- java.io.IOException
 
skip
public long skip(long n)
          throws java.io.IOException
- 
- Overrides:
- skipin class- java.io.PushbackInputStream
 
- 
- Throws:
- java.io.IOException
 
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.