com.caucho.xml2
Class XmlParser

java.lang.Object
  extended by com.caucho.xml2.AbstractParser
      extended by com.caucho.xml2.XmlParser
All Implemented Interfaces:
org.xml.sax.Parser, org.xml.sax.XMLReader
Direct Known Subclasses:
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 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)
           
 
Methods inherited from class com.caucho.xml2.AbstractParser
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
 
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

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)

read

protected final int read()
                  throws java.io.IOException,
                         org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

unread

public final void unread(int ch)

fillBuffer

protected boolean fillBuffer()
                      throws java.io.IOException
Throws:
java.io.IOException

readByte

protected int readByte()
                throws java.io.IOException
Throws:
java.io.IOException

unreadByte

protected void unreadByte(int ch)

free

public void free()

close

public void close()