|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.xml2.readers.XmlReader
public class XmlReader
A fast reader to convert bytes to characters for parsing XML.
Field Summary | |
---|---|
protected java.lang.String |
_filename
|
protected ReadStream |
_is
|
protected int |
_line
|
protected XmlReader |
_next
|
protected XmlParser |
_parser
|
protected java.lang.String |
_publicId
|
protected Path |
_searchPath
|
protected java.lang.String |
_systemId
|
protected static boolean[] |
isAsciiNameChar
|
Constructor Summary | |
---|---|
XmlReader()
Create a new reader. |
|
XmlReader(XmlParser parser,
ReadStream is)
Create a new reader with the given read stream. |
Method Summary | |
---|---|
void |
finish()
Finish reading. |
java.lang.String |
getFilename()
Gets the filename. |
int |
getLine()
Gets the current line number. |
XmlReader |
getNext()
Sets the next reader. |
java.lang.String |
getPublicId()
Gets the publicId. |
ReadStream |
getReadStream()
Returns the read stream. |
Path |
getSearchPath()
Gets the current search path. |
java.lang.String |
getSystemId()
Gets the systemId. |
void |
init(XmlParser parser,
ReadStream is)
Initialize a reader at the start of parsing. |
int |
parseName(CharBuffer name,
int ch)
Parses a name. |
int |
read()
Read the next character, returning -1 on end of file.. |
void |
setFilename(java.lang.String filename)
Sets the filename. |
void |
setLine(int line)
Sets the current line number. |
void |
setNext(XmlReader next)
Sets the next reader. |
void |
setPublicId(java.lang.String publicId)
Sets the publicId. |
void |
setSearchPath(Path searchPath)
Sets the current search path. |
void |
setSystemId(java.lang.String systemId)
Sets the systemId. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean[] isAsciiNameChar
protected XmlParser _parser
protected XmlReader _next
protected Path _searchPath
protected ReadStream _is
protected java.lang.String _filename
protected int _line
protected java.lang.String _systemId
protected java.lang.String _publicId
Constructor Detail |
---|
public XmlReader()
public XmlReader(XmlParser parser, ReadStream is)
Method Detail |
---|
public void init(XmlParser parser, ReadStream is)
public void setFilename(java.lang.String filename)
public java.lang.String getFilename()
public void setLine(int line)
public int getLine()
public void setSystemId(java.lang.String systemId)
public java.lang.String getSystemId()
public void setPublicId(java.lang.String publicId)
public java.lang.String getPublicId()
public void setSearchPath(Path searchPath)
public Path getSearchPath()
public void setNext(XmlReader next)
public XmlReader getNext()
public ReadStream getReadStream()
public int read() throws java.io.IOException
java.io.IOException
public int parseName(CharBuffer name, int ch) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |