|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.parsers.XMLParser
org.apache.xerces.parsers.AbstractXMLDocumentParser
org.apache.xerces.parsers.AbstractSAXParser
org.apache.xerces.parsers.SAXParser
org.apache.xerces.jaxp.SAXParserImpl.JAXPSAXParser
public static class SAXParserImpl.JAXPSAXParser
Extension of SAXParser. This class tracks changes to features and properties to allow the parser to be reset to its initial state.
| Field Summary |
|---|
| Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler |
|---|
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
| Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler |
|---|
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
| Constructor Summary | |
|---|---|
SAXParserImpl.JAXPSAXParser()
|
|
| Method Summary | |
|---|---|
boolean |
getFeature(java.lang.String name)
Query the state of a feature. |
java.lang.Object |
getProperty(java.lang.String name)
Query the value of a property. |
void |
parse(InputSource inputSource)
parse |
void |
parse(java.lang.String systemId)
Parses the input source specified by the given system identifier. |
void |
setFeature(java.lang.String name,
boolean value)
Override SAXParser's setFeature method to track the initial state of features. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Override SAXParser's setProperty method to track the initial state of properties. |
| Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
|---|
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDecl |
| Methods inherited from class org.apache.xerces.parsers.XMLParser |
|---|
parse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAXParserImpl.JAXPSAXParser()
| Method Detail |
|---|
public void setFeature(java.lang.String name,
boolean value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setFeature in interface XMLReadersetFeature in class AbstractSAXParsername - The unique identifier (URI) of the feature.value - The requested state of the feature (true or false).
SAXNotRecognizedException - If the
requested feature is not known.
SAXNotSupportedException - If the
requested feature is known, but the requested
state is not supported.XMLReader.getFeature(java.lang.String)
public boolean getFeature(java.lang.String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
AbstractSAXParser
getFeature in interface XMLReadergetFeature in class AbstractSAXParsername - The unique identifier (URI) of the feature
being set.
SAXNotRecognizedException - If the feature
value can't be assigned or retrieved.
SAXNotSupportedException - If the
requested feature is known but not supported.XMLReader.setFeature(java.lang.String, boolean)
public void setProperty(java.lang.String name,
java.lang.Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setProperty in interface XMLReadersetProperty in class AbstractSAXParsername - The unique identifier (URI) of the property
being set.value - The value to which the property is being set.
SAXNotRecognizedException - If the
requested property is not known.
SAXNotSupportedException - If the
requested property is known, but the requested
value is not supported.
public java.lang.Object getProperty(java.lang.String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
AbstractSAXParser
getProperty in interface XMLReadergetProperty in class AbstractSAXParsername - The unique identifier (URI) of the property
being set.
SAXNotRecognizedException - If the property
value can't be assigned or retrieved.
SAXNotSupportedException - If the
requested property is known but not supported.XMLReader.setProperty(java.lang.String, java.lang.Object)
public void parse(InputSource inputSource)
throws SAXException,
java.io.IOException
AbstractSAXParser
parse in interface Parserparse in interface XMLReaderparse in class AbstractSAXParserinputSource - The input source for the top-level of the
XML document.
SAXException - Any SAX exception, possibly
wrapping another exception.
java.io.IOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.InputSource,
Parser.parse(java.lang.String),
Parser.setEntityResolver(org.xml.sax.EntityResolver),
Parser.setDTDHandler(org.xml.sax.DTDHandler),
Parser.setDocumentHandler(org.xml.sax.DocumentHandler),
Parser.setErrorHandler(org.xml.sax.ErrorHandler)
public void parse(java.lang.String systemId)
throws SAXException,
java.io.IOException
AbstractSAXParserThis method is equivalent to the following:
parse(new InputSource(systemId));
parse in interface Parserparse in interface XMLReaderparse in class AbstractSAXParsersystemId - The system identifier (URI).
SAXException - Any SAX exception, possibly
wrapping another exception.
java.io.IOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.Parser.parse(org.xml.sax.InputSource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||