org.xml.sax.helpers
Class ParserAdapter

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.xml.sax.helpers.ParserAdapter
All Implemented Interfaces:
DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler , XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader

public class ParserAdapter
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader , DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler

Adapt a SAX1 Parser as a SAX2 XMLReader.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.

This class wraps a SAX1 Parser sample code for org.xml.sax.Parser definition code for org.xml.sax.Parser and makes it act as a SAX2 XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader , with feature, property, and Namespace support. Note that it is not possible to report skippedEntity sample code for org.xml.sax.ContentHandler.skippedEntity(java.lang.String) definition code for org.xml.sax.ContentHandler.skippedEntity(java.lang.String) events, since SAX1 does not make that information available.

This adapter does not test for duplicate Namespace-qualified attribute names.

Since:
SAX 2.0
See Also:
XMLReaderAdapter sample code for org.xml.sax.helpers.XMLReaderAdapter definition code for org.xml.sax.helpers.XMLReaderAdapter , XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader , Parser sample code for org.xml.sax.Parser definition code for org.xml.sax.Parser

Constructor Summary
ParserAdapter sample code for org.xml.sax.helpers.ParserAdapter.ParserAdapter() definition code for org.xml.sax.helpers.ParserAdapter.ParserAdapter() ()
          Construct a new parser adapter.
ParserAdapter sample code for org.xml.sax.helpers.ParserAdapter.ParserAdapter(org.xml.sax.Parser) definition code for org.xml.sax.helpers.ParserAdapter.ParserAdapter(org.xml.sax.Parser) (Parser sample code for org.xml.sax.Parser definition code for org.xml.sax.Parser  parser)
          Construct a new parser adapter.
 
Method Summary
 void characters sample code for org.xml.sax.helpers.ParserAdapter.characters(char[], int, int) definition code for org.xml.sax.helpers.ParserAdapter.characters(char[], int, int) (char[] ch, int start, int length)
          Adapter implementation method; do not call.
 void endDocument sample code for org.xml.sax.helpers.ParserAdapter.endDocument() definition code for org.xml.sax.helpers.ParserAdapter.endDocument() ()
          Adapter implementation method; do not call.
 void endElement sample code for org.xml.sax.helpers.ParserAdapter.endElement(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.endElement(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  qName)
          Adapter implementation method; do not call.
 ContentHandler sample code for org.xml.sax.ContentHandler definition code for org.xml.sax.ContentHandler getContentHandler sample code for org.xml.sax.helpers.ParserAdapter.getContentHandler() definition code for org.xml.sax.helpers.ParserAdapter.getContentHandler() ()
          Return the current content handler.
 DTDHandler sample code for org.xml.sax.DTDHandler definition code for org.xml.sax.DTDHandler getDTDHandler sample code for org.xml.sax.helpers.ParserAdapter.getDTDHandler() definition code for org.xml.sax.helpers.ParserAdapter.getDTDHandler() ()
          Return the current DTD handler.
 EntityResolver sample code for org.xml.sax.EntityResolver definition code for org.xml.sax.EntityResolver getEntityResolver sample code for org.xml.sax.helpers.ParserAdapter.getEntityResolver() definition code for org.xml.sax.helpers.ParserAdapter.getEntityResolver() ()
          Return the current entity resolver.
 ErrorHandler sample code for org.xml.sax.ErrorHandler definition code for org.xml.sax.ErrorHandler getErrorHandler sample code for org.xml.sax.helpers.ParserAdapter.getErrorHandler() definition code for org.xml.sax.helpers.ParserAdapter.getErrorHandler() ()
          Return the current error handler.
 boolean getFeature sample code for org.xml.sax.helpers.ParserAdapter.getFeature(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.getFeature(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Check a parser feature flag.
 Object sample code for java.lang.Object definition code for java.lang.Object getProperty sample code for org.xml.sax.helpers.ParserAdapter.getProperty(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.getProperty(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Get a parser property.
 void ignorableWhitespace sample code for org.xml.sax.helpers.ParserAdapter.ignorableWhitespace(char[], int, int) definition code for org.xml.sax.helpers.ParserAdapter.ignorableWhitespace(char[], int, int) (char[] ch, int start, int length)
          Adapter implementation method; do not call.
 void parse sample code for org.xml.sax.helpers.ParserAdapter.parse(org.xml.sax.InputSource) definition code for org.xml.sax.helpers.ParserAdapter.parse(org.xml.sax.InputSource) (InputSource sample code for org.xml.sax.InputSource definition code for org.xml.sax.InputSource  input)
          Parse an XML document.
 void parse sample code for org.xml.sax.helpers.ParserAdapter.parse(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.parse(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  systemId)
          Parse an XML document.
 void processingInstruction sample code for org.xml.sax.helpers.ParserAdapter.processingInstruction(java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.processingInstruction(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  target, String sample code for java.lang.String definition code for java.lang.String  data)
          Adapter implementation method; do not call.
 void setContentHandler sample code for org.xml.sax.helpers.ParserAdapter.setContentHandler(org.xml.sax.ContentHandler) definition code for org.xml.sax.helpers.ParserAdapter.setContentHandler(org.xml.sax.ContentHandler) (ContentHandler sample code for org.xml.sax.ContentHandler definition code for org.xml.sax.ContentHandler  handler)
          Set the content handler.
 void setDocumentLocator sample code for org.xml.sax.helpers.ParserAdapter.setDocumentLocator(org.xml.sax.Locator) definition code for org.xml.sax.helpers.ParserAdapter.setDocumentLocator(org.xml.sax.Locator) (Locator sample code for org.xml.sax.Locator definition code for org.xml.sax.Locator  locator)
          Adapter implementation method; do not call.
 void setDTDHandler sample code for org.xml.sax.helpers.ParserAdapter.setDTDHandler(org.xml.sax.DTDHandler) definition code for org.xml.sax.helpers.ParserAdapter.setDTDHandler(org.xml.sax.DTDHandler) (DTDHandler sample code for org.xml.sax.DTDHandler definition code for org.xml.sax.DTDHandler  handler)
          Set the DTD handler.
 void setEntityResolver sample code for org.xml.sax.helpers.ParserAdapter.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.helpers.ParserAdapter.setEntityResolver(org.xml.sax.EntityResolver) (EntityResolver sample code for org.xml.sax.EntityResolver definition code for org.xml.sax.EntityResolver  resolver)
          Set the entity resolver.
 void setErrorHandler sample code for org.xml.sax.helpers.ParserAdapter.setErrorHandler(org.xml.sax.ErrorHandler) definition code for org.xml.sax.helpers.ParserAdapter.setErrorHandler(org.xml.sax.ErrorHandler) (ErrorHandler sample code for org.xml.sax.ErrorHandler definition code for org.xml.sax.ErrorHandler  handler)
          Set the error handler.
 void setFeature sample code for org.xml.sax.helpers.ParserAdapter.setFeature(java.lang.String, boolean) definition code for org.xml.sax.helpers.ParserAdapter.setFeature(java.lang.String, boolean) (String sample code for java.lang.String definition code for java.lang.String  name, boolean value)
          Set a feature flag for the parser.
 void setProperty sample code for org.xml.sax.helpers.ParserAdapter.setProperty(java.lang.String, java.lang.Object) definition code for org.xml.sax.helpers.ParserAdapter.setProperty(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  name, Object sample code for java.lang.Object definition code for java.lang.Object  value)
          Set a parser property.
 void startDocument sample code for org.xml.sax.helpers.ParserAdapter.startDocument() definition code for org.xml.sax.helpers.ParserAdapter.startDocument() ()
          Adapter implementation method; do not call.
 void startElement sample code for org.xml.sax.helpers.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList) definition code for org.xml.sax.helpers.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList) (String sample code for java.lang.String definition code for java.lang.String  qName, AttributeList sample code for org.xml.sax.AttributeList definition code for org.xml.sax.AttributeList  qAtts)
          Adapter implementation method; do not call.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

ParserAdapter sample code for org.xml.sax.helpers.ParserAdapter() definition code for org.xml.sax.helpers.ParserAdapter()

public ParserAdapter()
              throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Construct a new parser adapter.

Use the "org.xml.sax.parser" property to locate the embedded SAX1 driver.

Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - If the embedded driver cannot be instantiated or if the org.xml.sax.parser property is not specified.

ParserAdapter sample code for org.xml.sax.helpers.ParserAdapter(org.xml.sax.Parser) definition code for org.xml.sax.helpers.ParserAdapter(org.xml.sax.Parser)

public ParserAdapter(Parser sample code for org.xml.sax.Parser definition code for org.xml.sax.Parser  parser)
Construct a new parser adapter.

Note that the embedded parser cannot be changed once the adapter is created; to embed a different parser, allocate a new ParserAdapter.

Parameters:
parser - The SAX1 parser to embed.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - If the parser parameter is null.
Method Detail

setFeature sample code for org.xml.sax.helpers.ParserAdapter.setFeature(java.lang.String, boolean) definition code for org.xml.sax.helpers.ParserAdapter.setFeature(java.lang.String, boolean)

public void setFeature(String sample code for java.lang.String definition code for java.lang.String  name,
                       boolean value)
                throws SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException ,
                       SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException 
Set a feature flag for the parser.

The only features recognized are namespaces and namespace-prefixes.

Specified by:
setFeature sample code for org.xml.sax.XMLReader.setFeature(java.lang.String, boolean) definition code for org.xml.sax.XMLReader.setFeature(java.lang.String, boolean) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
name - The feature name, as a complete URI.
value - The requested feature value.
Throws:
SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException - If the feature can't be assigned or retrieved.
SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException - If the feature can't be assigned that value.
See Also:
XMLReader.setFeature(java.lang.String, boolean) sample code for org.xml.sax.XMLReader.setFeature(java.lang.String, boolean) definition code for org.xml.sax.XMLReader.setFeature(java.lang.String, boolean)

getFeature sample code for org.xml.sax.helpers.ParserAdapter.getFeature(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.getFeature(java.lang.String)

public boolean getFeature(String sample code for java.lang.String definition code for java.lang.String  name)
                   throws SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException ,
                          SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException 
Check a parser feature flag.

The only features recognized are namespaces and namespace-prefixes.

Specified by:
getFeature sample code for org.xml.sax.XMLReader.getFeature(java.lang.String) definition code for org.xml.sax.XMLReader.getFeature(java.lang.String) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
name - The feature name, as a complete URI.
Returns:
The current feature value.
Throws:
SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException - If the feature value can't be assigned or retrieved.
SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException - If the feature is not currently readable.
See Also:
XMLReader.setFeature(java.lang.String, boolean) sample code for org.xml.sax.XMLReader.setFeature(java.lang.String, boolean) definition code for org.xml.sax.XMLReader.setFeature(java.lang.String, boolean)

setProperty sample code for org.xml.sax.helpers.ParserAdapter.setProperty(java.lang.String, java.lang.Object) definition code for org.xml.sax.helpers.ParserAdapter.setProperty(java.lang.String, java.lang.Object)

public void setProperty(String sample code for java.lang.String definition code for java.lang.String  name,
                        Object sample code for java.lang.Object definition code for java.lang.Object  value)
                 throws SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException ,
                        SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException 
Set a parser property.

No properties are currently recognized.

Specified by:
setProperty sample code for org.xml.sax.XMLReader.setProperty(java.lang.String, java.lang.Object) definition code for org.xml.sax.XMLReader.setProperty(java.lang.String, java.lang.Object) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
name - The property name.
value - The property value.
Throws:
SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException - If the property value can't be assigned or retrieved.
SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException - If the property can't be assigned that value.
See Also:
XMLReader.setProperty(java.lang.String, java.lang.Object) sample code for org.xml.sax.XMLReader.setProperty(java.lang.String, java.lang.Object) definition code for org.xml.sax.XMLReader.setProperty(java.lang.String, java.lang.Object)

getProperty sample code for org.xml.sax.helpers.ParserAdapter.getProperty(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.getProperty(java.lang.String)

public Object sample code for java.lang.Object definition code for java.lang.Object  getProperty(String sample code for java.lang.String definition code for java.lang.String  name)
                   throws SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException ,
                          SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException 
Get a parser property.

No properties are currently recognized.

Specified by:
getProperty sample code for org.xml.sax.XMLReader.getProperty(java.lang.String) definition code for org.xml.sax.XMLReader.getProperty(java.lang.String) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
name - The property name.
Returns:
The property value.
Throws:
SAXNotRecognizedException sample code for org.xml.sax.SAXNotRecognizedException definition code for org.xml.sax.SAXNotRecognizedException - If the property value can't be assigned or retrieved.
SAXNotSupportedException sample code for org.xml.sax.SAXNotSupportedException definition code for org.xml.sax.SAXNotSupportedException - If the property value is not currently readable.
See Also:
XMLReader.getProperty(java.lang.String) sample code for org.xml.sax.XMLReader.getProperty(java.lang.String) definition code for org.xml.sax.XMLReader.getProperty(java.lang.String)

setEntityResolver sample code for org.xml.sax.helpers.ParserAdapter.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.helpers.ParserAdapter.setEntityResolver(org.xml.sax.EntityResolver)

public void setEntityResolver(EntityResolver sample code for org.xml.sax.EntityResolver definition code for org.xml.sax.EntityResolver  resolver)
Set the entity resolver.

Specified by:
setEntityResolver sample code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
resolver - The new entity resolver.
See Also:
XMLReader.setEntityResolver(org.xml.sax.EntityResolver) sample code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)

getEntityResolver sample code for org.xml.sax.helpers.ParserAdapter.getEntityResolver() definition code for org.xml.sax.helpers.ParserAdapter.getEntityResolver()

public EntityResolver sample code for org.xml.sax.EntityResolver definition code for org.xml.sax.EntityResolver  getEntityResolver()
Return the current entity resolver.

Specified by:
getEntityResolver sample code for org.xml.sax.XMLReader.getEntityResolver() definition code for org.xml.sax.XMLReader.getEntityResolver() in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Returns:
The current entity resolver, or null if none was supplied.
See Also:
XMLReader.getEntityResolver() sample code for org.xml.sax.XMLReader.getEntityResolver() definition code for org.xml.sax.XMLReader.getEntityResolver()

setDTDHandler sample code for org.xml.sax.helpers.ParserAdapter.setDTDHandler(org.xml.sax.DTDHandler) definition code for org.xml.sax.helpers.ParserAdapter.setDTDHandler(org.xml.sax.DTDHandler)

public void setDTDHandler(DTDHandler sample code for org.xml.sax.DTDHandler definition code for org.xml.sax.DTDHandler  handler)
Set the DTD handler.

Specified by:
setDTDHandler sample code for org.xml.sax.XMLReader.setDTDHandler(org.xml.sax.DTDHandler) definition code for org.xml.sax.XMLReader.setDTDHandler(org.xml.sax.DTDHandler) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
handler - the new DTD handler
See Also:
XMLReader.setEntityResolver(org.xml.sax.EntityResolver) sample code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)

getDTDHandler sample code for org.xml.sax.helpers.ParserAdapter.getDTDHandler() definition code for org.xml.sax.helpers.ParserAdapter.getDTDHandler()

public DTDHandler sample code for org.xml.sax.DTDHandler definition code for org.xml.sax.DTDHandler  getDTDHandler()
Return the current DTD handler.

Specified by:
getDTDHandler sample code for org.xml.sax.XMLReader.getDTDHandler() definition code for org.xml.sax.XMLReader.getDTDHandler() in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Returns:
the current DTD handler, or null if none was supplied
See Also:
XMLReader.getEntityResolver() sample code for org.xml.sax.XMLReader.getEntityResolver() definition code for org.xml.sax.XMLReader.getEntityResolver()

setContentHandler sample code for org.xml.sax.helpers.ParserAdapter.setContentHandler(org.xml.sax.ContentHandler) definition code for org.xml.sax.helpers.ParserAdapter.setContentHandler(org.xml.sax.ContentHandler)

public void setContentHandler(ContentHandler sample code for org.xml.sax.ContentHandler definition code for org.xml.sax.ContentHandler  handler)
Set the content handler.

Specified by:
setContentHandler sample code for org.xml.sax.XMLReader.setContentHandler(org.xml.sax.ContentHandler) definition code for org.xml.sax.XMLReader.setContentHandler(org.xml.sax.ContentHandler) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
handler - the new content handler
See Also:
XMLReader.setEntityResolver(org.xml.sax.EntityResolver) sample code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)

getContentHandler sample code for org.xml.sax.helpers.ParserAdapter.getContentHandler() definition code for org.xml.sax.helpers.ParserAdapter.getContentHandler()

public ContentHandler sample code for org.xml.sax.ContentHandler definition code for org.xml.sax.ContentHandler  getContentHandler()
Return the current content handler.

Specified by:
getContentHandler sample code for org.xml.sax.XMLReader.getContentHandler() definition code for org.xml.sax.XMLReader.getContentHandler() in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Returns:
The current content handler, or null if none was supplied.
See Also:
XMLReader.getEntityResolver() sample code for org.xml.sax.XMLReader.getEntityResolver() definition code for org.xml.sax.XMLReader.getEntityResolver()

setErrorHandler sample code for org.xml.sax.helpers.ParserAdapter.setErrorHandler(org.xml.sax.ErrorHandler) definition code for org.xml.sax.helpers.ParserAdapter.setErrorHandler(org.xml.sax.ErrorHandler)

public void setErrorHandler(ErrorHandler sample code for org.xml.sax.ErrorHandler definition code for org.xml.sax.ErrorHandler  handler)
Set the error handler.

Specified by:
setErrorHandler sample code for org.xml.sax.XMLReader.setErrorHandler(org.xml.sax.ErrorHandler) definition code for org.xml.sax.XMLReader.setErrorHandler(org.xml.sax.ErrorHandler) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
handler - The new error handler.
See Also:
XMLReader.setEntityResolver(org.xml.sax.EntityResolver) sample code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver) definition code for org.xml.sax.XMLReader.setEntityResolver(org.xml.sax.EntityResolver)

getErrorHandler sample code for org.xml.sax.helpers.ParserAdapter.getErrorHandler() definition code for org.xml.sax.helpers.ParserAdapter.getErrorHandler()

public ErrorHandler sample code for org.xml.sax.ErrorHandler definition code for org.xml.sax.ErrorHandler  getErrorHandler()
Return the current error handler.

Specified by:
getErrorHandler sample code for org.xml.sax.XMLReader.getErrorHandler() definition code for org.xml.sax.XMLReader.getErrorHandler() in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Returns:
The current error handler, or null if none was supplied.
See Also:
XMLReader.getEntityResolver() sample code for org.xml.sax.XMLReader.getEntityResolver() definition code for org.xml.sax.XMLReader.getEntityResolver()

parse sample code for org.xml.sax.helpers.ParserAdapter.parse(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.parse(java.lang.String)

public void parse(String sample code for java.lang.String definition code for java.lang.String  systemId)
           throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                  SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Parse an XML document.

Specified by:
parse sample code for org.xml.sax.XMLReader.parse(java.lang.String) definition code for org.xml.sax.XMLReader.parse(java.lang.String) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
systemId - The absolute URL of the document.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - If there is a problem reading the raw content of the document.
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - If there is a problem processing the document.
See Also:
parse(org.xml.sax.InputSource) sample code for org.xml.sax.helpers.ParserAdapter.parse(org.xml.sax.InputSource) definition code for org.xml.sax.helpers.ParserAdapter.parse(org.xml.sax.InputSource) , Parser.parse(java.lang.String) sample code for org.xml.sax.Parser.parse(java.lang.String) definition code for org.xml.sax.Parser.parse(java.lang.String)

parse sample code for org.xml.sax.helpers.ParserAdapter.parse(org.xml.sax.InputSource) definition code for org.xml.sax.helpers.ParserAdapter.parse(org.xml.sax.InputSource)

public void parse(InputSource sample code for org.xml.sax.InputSource definition code for org.xml.sax.InputSource  input)
           throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                  SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Parse an XML document.

Specified by:
parse sample code for org.xml.sax.XMLReader.parse(org.xml.sax.InputSource) definition code for org.xml.sax.XMLReader.parse(org.xml.sax.InputSource) in interface XMLReader sample code for org.xml.sax.XMLReader definition code for org.xml.sax.XMLReader
Parameters:
input - An input source for the document.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - If there is a problem reading the raw content of the document.
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - If there is a problem processing the document.
See Also:
parse(java.lang.String) sample code for org.xml.sax.helpers.ParserAdapter.parse(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.parse(java.lang.String) , Parser.parse(org.xml.sax.InputSource) sample code for org.xml.sax.Parser.parse(org.xml.sax.InputSource) definition code for org.xml.sax.Parser.parse(org.xml.sax.InputSource)

setDocumentLocator sample code for org.xml.sax.helpers.ParserAdapter.setDocumentLocator(org.xml.sax.Locator) definition code for org.xml.sax.helpers.ParserAdapter.setDocumentLocator(org.xml.sax.Locator)

public void setDocumentLocator(Locator sample code for org.xml.sax.Locator definition code for org.xml.sax.Locator  locator)
Adapter implementation method; do not call. Adapt a SAX1 document locator event.

Specified by:
setDocumentLocator sample code for org.xml.sax.DocumentHandler.setDocumentLocator(org.xml.sax.Locator) definition code for org.xml.sax.DocumentHandler.setDocumentLocator(org.xml.sax.Locator) in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Parameters:
locator - A document locator.
See Also:
ContentHandler.setDocumentLocator(org.xml.sax.Locator) sample code for org.xml.sax.ContentHandler.setDocumentLocator(org.xml.sax.Locator) definition code for org.xml.sax.ContentHandler.setDocumentLocator(org.xml.sax.Locator)

startDocument sample code for org.xml.sax.helpers.ParserAdapter.startDocument() definition code for org.xml.sax.helpers.ParserAdapter.startDocument()

public void startDocument()
                   throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 start document event.

Specified by:
startDocument sample code for org.xml.sax.DocumentHandler.startDocument() definition code for org.xml.sax.DocumentHandler.startDocument() in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.startDocument() sample code for org.xml.sax.DocumentHandler.startDocument() definition code for org.xml.sax.DocumentHandler.startDocument()

endDocument sample code for org.xml.sax.helpers.ParserAdapter.endDocument() definition code for org.xml.sax.helpers.ParserAdapter.endDocument()

public void endDocument()
                 throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 end document event.

Specified by:
endDocument sample code for org.xml.sax.DocumentHandler.endDocument() definition code for org.xml.sax.DocumentHandler.endDocument() in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.endDocument() sample code for org.xml.sax.DocumentHandler.endDocument() definition code for org.xml.sax.DocumentHandler.endDocument()

startElement sample code for org.xml.sax.helpers.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList) definition code for org.xml.sax.helpers.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList)

public void startElement(String sample code for java.lang.String definition code for java.lang.String  qName,
                         AttributeList sample code for org.xml.sax.AttributeList definition code for org.xml.sax.AttributeList  qAtts)
                  throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 startElement event.

If necessary, perform Namespace processing.

Specified by:
startElement sample code for org.xml.sax.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList) definition code for org.xml.sax.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList) in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Parameters:
qName - The qualified (prefixed) name.
qAtts - The XML attribute list (with qnames).
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.endElement(java.lang.String) sample code for org.xml.sax.DocumentHandler.endElement(java.lang.String) definition code for org.xml.sax.DocumentHandler.endElement(java.lang.String) , AttributeList sample code for org.xml.sax.AttributeList definition code for org.xml.sax.AttributeList

endElement sample code for org.xml.sax.helpers.ParserAdapter.endElement(java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.endElement(java.lang.String)

public void endElement(String sample code for java.lang.String definition code for java.lang.String  qName)
                throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 end element event.

Specified by:
endElement sample code for org.xml.sax.DocumentHandler.endElement(java.lang.String) definition code for org.xml.sax.DocumentHandler.endElement(java.lang.String) in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Parameters:
qName - The qualified (prefixed) name.
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.endElement(java.lang.String) sample code for org.xml.sax.DocumentHandler.endElement(java.lang.String) definition code for org.xml.sax.DocumentHandler.endElement(java.lang.String)

characters sample code for org.xml.sax.helpers.ParserAdapter.characters(char[], int, int) definition code for org.xml.sax.helpers.ParserAdapter.characters(char[], int, int)

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 characters event.

Specified by:
characters sample code for org.xml.sax.DocumentHandler.characters(char[], int, int) definition code for org.xml.sax.DocumentHandler.characters(char[], int, int) in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Parameters:
ch - An array of characters.
start - The starting position in the array.
length - The number of characters to use.
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.characters(char[], int, int) sample code for org.xml.sax.DocumentHandler.characters(char[], int, int) definition code for org.xml.sax.DocumentHandler.characters(char[], int, int)

ignorableWhitespace sample code for org.xml.sax.helpers.ParserAdapter.ignorableWhitespace(char[], int, int) definition code for org.xml.sax.helpers.ParserAdapter.ignorableWhitespace(char[], int, int)

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 ignorable whitespace event.

Specified by:
ignorableWhitespace sample code for org.xml.sax.DocumentHandler.ignorableWhitespace(char[], int, int) definition code for org.xml.sax.DocumentHandler.ignorableWhitespace(char[], int, int) in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Parameters:
ch - An array of characters.
start - The starting position in the array.
length - The number of characters to use.
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.ignorableWhitespace(char[], int, int) sample code for org.xml.sax.DocumentHandler.ignorableWhitespace(char[], int, int) definition code for org.xml.sax.DocumentHandler.ignorableWhitespace(char[], int, int)

processingInstruction sample code for org.xml.sax.helpers.ParserAdapter.processingInstruction(java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.ParserAdapter.processingInstruction(java.lang.String, java.lang.String)

public void processingInstruction(String sample code for java.lang.String definition code for java.lang.String  target,
                                  String sample code for java.lang.String definition code for java.lang.String  data)
                           throws SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException 
Adapter implementation method; do not call. Adapt a SAX1 processing instruction event.

Specified by:
processingInstruction sample code for org.xml.sax.DocumentHandler.processingInstruction(java.lang.String, java.lang.String) definition code for org.xml.sax.DocumentHandler.processingInstruction(java.lang.String, java.lang.String) in interface DocumentHandler sample code for org.xml.sax.DocumentHandler definition code for org.xml.sax.DocumentHandler
Parameters:
target - The processing instruction target.
data - The remainder of the processing instruction
Throws:
SAXException sample code for org.xml.sax.SAXException definition code for org.xml.sax.SAXException - The client may raise a processing exception.
See Also:
DocumentHandler.processingInstruction(java.lang.String, java.lang.String) sample code for org.xml.sax.DocumentHandler.processingInstruction(java.lang.String, java.lang.String) definition code for org.xml.sax.DocumentHandler.processingInstruction(java.lang.String, java.lang.String)