com.caucho.xml2
Class XMLParserImpl

java.lang.Object
  extended by com.caucho.xml2.XMLParserImpl
All Implemented Interfaces:
org.xml.sax.Parser

public class XMLParserImpl
extends java.lang.Object
implements org.xml.sax.Parser

A fast XML parser.


Field Summary
static java.lang.String XMLNS
           
 
Constructor Summary
XMLParserImpl()
           
 
Method Summary
 void parse(org.xml.sax.InputSource source)
          parses the input source.
 void parse(java.lang.String source)
          parses the file at the given string
 void setDocumentHandler(org.xml.sax.DocumentHandler handler)
          Sets the SAX document handler
 void setDTDHandler(org.xml.sax.DTDHandler handler)
          Sets the SAX DTD handler
 void setEntityResolver(org.xml.sax.EntityResolver resolver)
          Sets the SAX entityResolver.
 void setErrorHandler(org.xml.sax.ErrorHandler handler)
          Sets the SAX errorHandler.
 void setLocale(java.util.Locale locale)
          Sets the SAX locale
 
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
Constructor Detail

XMLParserImpl

public XMLParserImpl()
Method Detail

setErrorHandler

public void setErrorHandler(org.xml.sax.ErrorHandler handler)
Sets the SAX errorHandler.

Specified by:
setErrorHandler in interface org.xml.sax.Parser
Parameters:
handler - the error handler

setEntityResolver

public void setEntityResolver(org.xml.sax.EntityResolver resolver)
Sets the SAX entityResolver.

Specified by:
setEntityResolver in interface org.xml.sax.Parser
Parameters:
resolver - the entity resolver

setDocumentHandler

public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets the SAX document handler

Specified by:
setDocumentHandler in interface org.xml.sax.Parser
Parameters:
handler - the document handler

setDTDHandler

public void setDTDHandler(org.xml.sax.DTDHandler handler)
Sets the SAX DTD handler

Specified by:
setDTDHandler in interface org.xml.sax.Parser
Parameters:
handler - the dtd handler

setLocale

public void setLocale(java.util.Locale locale)
Sets the SAX locale

Specified by:
setLocale in interface org.xml.sax.Parser
Parameters:
locale - locale

parse

public void parse(org.xml.sax.InputSource source)
           throws java.io.IOException,
                  org.xml.sax.SAXException
parses the input source.

Specified by:
parse in interface org.xml.sax.Parser
Parameters:
source - the source to parse from
Throws:
java.io.IOException
org.xml.sax.SAXException

parse

public void parse(java.lang.String source)
           throws java.io.IOException,
                  org.xml.sax.SAXException
parses the file at the given string

Specified by:
parse in interface org.xml.sax.Parser
Parameters:
url - the source url to parse from
Throws:
java.io.IOException
org.xml.sax.SAXException