com.caucho.xml.readers
Class Utf8Reader

java.lang.Object
  extended by com.caucho.xml.readers.XmlReader
      extended by com.caucho.xml.readers.Utf8Reader

public class Utf8Reader
extends XmlReader

A fast reader to convert bytes to characters for parsing XML.


Field Summary
 
Fields inherited from class com.caucho.xml.readers.XmlReader
_filename, _is, _line, _next, _parser, _publicId, _searchPath, _systemId, isAsciiNameChar
 
Constructor Summary
Utf8Reader()
          Create a new reader.
Utf8Reader(XmlParser parser, ReadStream is)
          Create a new reader with the given read stream.
 
Method Summary
 int read()
          Read the next character, returning -1 on end of file..
 
Methods inherited from class com.caucho.xml.readers.XmlReader
finish, getFilename, getLine, getNext, getPublicId, getReadStream, getSearchPath, getSystemId, init, parseName, setFilename, setLine, setNext, setPublicId, setSearchPath, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utf8Reader

public Utf8Reader()
Create a new reader.


Utf8Reader

public Utf8Reader(XmlParser parser,
                  ReadStream is)
Create a new reader with the given read stream.

Method Detail

read

public int read()
         throws java.io.IOException
Read the next character, returning -1 on end of file..

Overrides:
read in class XmlReader
Throws:
java.io.IOException