public class XmlReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
XmlReader()
Create a new reader.
|
XmlReader(XmlParser parser,
ReadStream is)
Create a new reader with the given read stream.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public XmlReader()
public XmlReader(XmlParser parser, ReadStream is)
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()