com.caucho.xml
Class XmlParser

java.lang.Object
  extended by com.caucho.xml.AbstractParser
      extended by com.caucho.xml.XmlParser
All Implemented Interfaces:
org.xml.sax.Parser, org.xml.sax.XMLReader
Direct Known Subclasses:
Html, LooseHtml, LooseXml, Xml

public class XmlParser
extends AbstractParser

A configurable XML parser. Loose versions of XML and HTML are supported by changing the Policy object.

Normally, applications will use Xml, LooseXml, Html, or LooseHtml.


Nested Class Summary
static class XmlParser.LocatorImpl
           
 
Field Summary
static java.lang.String XML
           
static java.lang.String XMLNS
           
 
Constructor Summary
XmlParser()
           
 
Method Summary
 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.
 void pushNamespace(java.lang.String prefix, java.lang.String uri)
           
 void setLine(int line)
           
 void setReader(XmlReader reader)
           
 void unread(int ch)
           
 
Methods inherited from class com.caucho.xml.AbstractParser
getContentHandler, getDefaultEncoding, getDTDHandler, getEncoding, getEntitiesAsText, getEntityResolver, getErrorHandler, getFeature, getForgiving, getJsp, getProperty, getResinInclude, getSearchPath, getSkipComments, isCoalescing, isDtdValidating, isNamespaceAware, isNamespacePrefixes, isSAXNamespaces, isValidating, openSource, openStream, openStream, openStream, openTopStream, parse, parse, parse, parse, parse, parseDocument, parseDocument, parseDocument, parseDocument, parseDocument, parseDocument, parseDocumentString, parseImpl, parseString, setAutodetectXml, setCoalescing, setConfig, setContentHandler, setDefaultEncoding, setDocumentHandler, setDTDHandler, setDtdValidating, setEntitiesAsText, setEntityResolver, setErrorHandler, setExpandEntities, setFeature, setFilename, setForgiving, setJsp, setLexicalHandler, setLocale, setNamespaceAware, setNamespacePrefixes, setOwner, setProperty, setResinInclude, setSAXNamespaces, setSearchPath, setSkipComments, setSkipWhitespace, setToLower, setValidating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMLNS

public static final java.lang.String XMLNS
See Also:
Constant Field Values

XML

public static final java.lang.String XML
See Also:
Constant Field Values
Constructor Detail

XmlParser

public XmlParser()
Method Detail

pushNamespace

public void pushNamespace(java.lang.String prefix,
                          java.lang.String uri)

getFilename

public java.lang.String getFilename()
Returns the current filename.


getLine

public int getLine()
Returns the current line.


getPublicId

public java.lang.String getPublicId()
Returns the current public id being read.


getSystemId

public java.lang.String getSystemId()
Returns the current system id being read.


setLine

public void setLine(int line)

getLineNumber

public int getLineNumber()

getColumnNumber

public int getColumnNumber()

setReader

public void setReader(XmlReader reader)

unread

public void unread(int ch)

free

public void free()