Save This Page
Home » xmlbeans-2.4.0-src » org.apache.xmlbeans.impl.common » [javadoc | source]
org.apache.xmlbeans.impl.common
abstract public class: PushedInputStream [javadoc | source]
java.lang.Object
   java.io.InputStream
      org.apache.xmlbeans.impl.common.PushedInputStream

All Implemented Interfaces:
    Closeable

Direct Known Subclasses:
    ReaderInputStream

Field Summary
protected  byte[] buf     
protected  int writepos     
protected  int readpos     
protected  int markpos     
protected  int marklimit     
protected  OutputStream outputStream     
Constructor:
 public PushedInputStream() 
 public PushedInputStream(int size) 
Method from org.apache.xmlbeans.impl.common.PushedInputStream Summary:
available,   fill,   getOutputStream,   mark,   markSupported,   read,   read,   reset,   skip
Methods from java.io.InputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.impl.common.PushedInputStream Detail:
 public synchronized int available() 
 abstract protected  void fill(int requestedBytes) throws IOException
    Called when more bytes need to be written into this stream (as an OutputStream). This method must write at least one byte if the stream is not ended, and it must not write any bytes if the stream has already ended.
 public final OutputStream getOutputStream() 
    Returns the linked output stream. This is the output stream that must be written to whenever the fill method is called.
 public synchronized  void mark(int readlimit) 
 public boolean markSupported() 
 public synchronized int read() throws IOException 
 public synchronized int read(byte[] b,
    int off,
    int len) throws IOException 
    Read characters into a portion of an array, reading from the underlying stream at most once if necessary.
 public synchronized  void reset() throws IOException 
 public synchronized long skip(long n) throws IOException