org.apache.crimson.parser
Class XmlReader.BaseReader
java.lang.Object
java.io.Reader
org.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
Method Summary |
void |
close()
Close the stream. |
boolean |
ready()
Tell whether this stream is ready to be read. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instream
protected InputStream instream
buffer
protected byte[] buffer
start
protected int start
finish
protected int finish
XmlReader.BaseReader
XmlReader.BaseReader(InputStream stream)
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