|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.ConfigurableParserAdapter
Adapt a SAX1 parser to implement the Configurable interface. This class implements the SAX1 Parser interface and the SAX2 Configurable interface by embedding another Parser instance. If the embedded parser already implements the Configurable interface, it will be used directly; otherwise, the parser will not know about any features or properties, and will throw a SAXNotRecognizedException for all of them.
Parser
,
Configurable
Field Summary | |
private Configurable |
configurable
|
private Parser |
parser
|
Constructor Summary | |
ConfigurableParserAdapter(Parser parser)
Construct a SAX2 parser by embedding another SAX parser. |
Method Summary | |
boolean |
getFeature(java.lang.String featureId)
Get the state of a feature. |
java.lang.Object |
getProperty(java.lang.String propertyId)
Get the state of a property. |
void |
parse(InputSource source)
Parse an XML document from an InputSource. |
void |
parse(java.lang.String systemId)
Parse an XML document from a fully-qualified system ID. |
void |
setDocumentHandler(DocumentHandler handler)
Set the parser's document event handler. |
void |
setDTDHandler(DTDHandler handler)
Set the parser's DTD event handler. |
void |
setEntityResolver(EntityResolver resolver)
Set the parser's entity resolver. |
void |
setErrorHandler(ErrorHandler handler)
Set the parser's error event handler. |
void |
setFeature(java.lang.String featureId,
boolean state)
Set the state of a feature. |
void |
setLocale(java.util.Locale locale)
Set the locale for error reporting. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Set the state of a property. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Parser parser
private Configurable configurable
Constructor Detail |
public ConfigurableParserAdapter(Parser parser)
parser
- The embedded SAX parser.Method Detail |
public void setLocale(java.util.Locale locale) throws SAXException
The
- locale for error reporting.Parser.setLocale(java.util.Locale)
public void setEntityResolver(EntityResolver resolver)
resolver
- The application-provided entity resolver.Parser.setEntityResolver(org.xml.sax.EntityResolver)
public void setDTDHandler(DTDHandler handler)
handler
- The application-provided DTD event handler.Parser.setDTDHandler(org.xml.sax.DTDHandler)
public void setDocumentHandler(DocumentHandler handler)
handler
- The application-provided document event handler.Parser.setDocumentHandler(org.xml.sax.DocumentHandler)
public void setErrorHandler(ErrorHandler handler)
handler
- The application-provided error event handler.Parser.setErrorHandler(org.xml.sax.ErrorHandler)
public void parse(InputSource source) throws SAXException, java.io.IOException
source
- The InputSource for the XML document.Parser.parse(org.xml.sax.InputSource)
public void parse(java.lang.String systemId) throws SAXException, java.io.IOException
systemId
- The system identifier (URI) for the document.Parser.parse(java.lang.String)
public void setFeature(java.lang.String featureId, boolean state) throws SAXException
Configurable.setFeature(java.lang.String, boolean)
public boolean getFeature(java.lang.String featureId) throws SAXException
Configurable.getFeature(java.lang.String)
public void setProperty(java.lang.String propertyId, java.lang.Object value) throws SAXException
Configurable.setProperty(java.lang.String, java.lang.Object)
public java.lang.Object getProperty(java.lang.String propertyId) throws SAXException
Configurable.getProperty(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |