org.apache.crimson.parser
Class XmlReader.BaseReader

java.lang.Object
  extended byjava.io.Reader
      extended byorg.apache.crimson.parser.XmlReader.BaseReader
Direct Known Subclasses:
XmlReader.AsciiReader, XmlReader.Iso8859_1Reader, XmlReader.Utf8Reader
Enclosing class:
XmlReader

abstract static class XmlReader.BaseReader
extends Reader


Field Summary
protected  byte[] buffer
           
protected  int finish
           
protected  InputStream instream
           
protected  int start
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
(package private) XmlReader.BaseReader(InputStream stream)
           
 
Method Summary
 void close()
          Close the stream.
 boolean ready()
          Tell whether this stream is ready to be read.
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instream

protected InputStream instream

buffer

protected byte[] buffer

start

protected int start

finish

protected int finish
Constructor Detail

XmlReader.BaseReader

XmlReader.BaseReader(InputStream stream)
Method Detail

ready

public boolean ready()
              throws IOException
Description copied from class: Reader
Tell whether this stream is ready to be read.

Overrides:
ready in class Reader
Returns:
True if the next read() is guaranteed not to block for input, false otherwise. Note that returning false does not guarantee that the next read will block.
Throws:
IOException - If an I/O error occurs

close

public void close()
           throws IOException
Description copied from class: Reader
Close the stream. Once a stream has been closed, further read(), ready(), mark(), or reset() invocations will throw an IOException. Closing a previously-closed stream, however, has no effect.

Specified by:
close in class Reader
Throws:
IOException - If an I/O error occurs