public class XmlParser extends AbstractParser
Normally, applications will use Xml, LooseXml, Html, or LooseHtml.
Modifier and Type | Class and Description |
---|---|
static class |
XmlParser.LocatorImpl |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML |
static java.lang.String |
XMLNS |
Constructor and Description |
---|
XmlParser() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected boolean |
fillBuffer() |
void |
free() |
int |
getColumnNumber() |
java.lang.String |
getFilename()
Returns the current filename.
|
int |
getLine()
Returns the current line.
|
int |
getLineNumber() |
java.lang.String |
getPublicId()
Returns the current public id being read.
|
java.lang.String |
getSystemId()
Returns the current system id being read.
|
protected int |
read() |
protected int |
readByte() |
void |
setLine(int line) |
void |
setReader(XmlReader reader) |
void |
unread(int ch) |
protected void |
unreadByte(int ch) |
getContentHandler, getDefaultEncoding, getDTDHandler, getEntitiesAsText, getEntityResolver, getErrorHandler, getFeature, getProperty, getSkipComments, isCoalescing, isNamespaceAware, isNamespacePrefixes, isSAXNamespaces, isValidating, openSource, openStream, openStream, openStream, openTopStream, parse, parse, parse, parse, parse, parseDocument, parseDocument, parseDocument, parseDocument, parseDocument, parseDocument, parseDocumentString, parseImpl, parseString, setCoalescing, setConfig, setContentHandler, setDefaultEncoding, setDocumentHandler, setDTDHandler, setEntitiesAsText, setEntityResolver, setErrorHandler, setExpandEntities, setFeature, setLexicalHandler, setLocale, setNamespaceAware, setNamespacePrefixes, setOwner, setProperty, setSAXNamespaces, setSkipComments, setSkipWhitespace, setValidating
public static final java.lang.String XMLNS
public static final java.lang.String XML
public java.lang.String getFilename()
public int getLine()
public java.lang.String getPublicId()
public java.lang.String getSystemId()
public void setLine(int line)
public int getLineNumber()
public int getColumnNumber()
public void setReader(XmlReader reader)
protected final int read() throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public final void unread(int ch)
protected boolean fillBuffer() throws java.io.IOException
java.io.IOException
protected int readByte() throws java.io.IOException
java.io.IOException
protected void unreadByte(int ch)
public void free()
public void close()