com.caucho.xml2.readers
Class Utf16Reader

java.lang.Object
  extended by com.caucho.xml2.readers.XmlReader
      extended by com.caucho.xml2.readers.Utf16Reader

public class Utf16Reader
extends XmlReader

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


Field Summary
 
Fields inherited from class com.caucho.xml2.readers.XmlReader
_filename, _is, _line, _next, _parser, _publicId, _searchPath, _systemId, isAsciiNameChar
 
Constructor Summary
Utf16Reader()
          Create a new reader.
Utf16Reader(XmlParser parser, ReadStream is)
          Create a new reader with the given read stream.
 
Method Summary
 boolean getReverse()
           
 int read()
          Read the next character, returning -1 on end of file..
 void setReverse(boolean isReverse)
           
 
Methods inherited from class com.caucho.xml2.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

Utf16Reader

public Utf16Reader()
Create a new reader.


Utf16Reader

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

Method Detail

setReverse

public void setReverse(boolean isReverse)

getReverse

public boolean getReverse()

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