public static class SAXParserImpl.JAXPSAXParser extends SAXParser
AbstractSAXParser.AttributesProxy, AbstractSAXParser.LocatorProxyNOTIFY_BUILTIN_REFS, SYMBOL_TABLE, XMLGRAMMAR_POOLALLOW_UE_AND_NOTATION_EVENTS, DECLARATION_HANDLER, DOM_NODE, fContentHandler, fDeclaredAttrs, fDeclHandler, fDocumentHandler, fDTDHandler, fLexicalHandler, fLexicalHandlerParameterEntities, fNamespaceContext, fNamespacePrefixes, fNamespaces, fParseInProgress, fQName, fResolveDTDURIs, fStandalone, fUseEntityResolver2, fVersion, fXMLNSURIs, LEXICAL_HANDLER, NAMESPACES, STRING_INTERNINGfDocumentSource, fDTDContentModelSource, fDTDSource, fInDTDENTITY_RESOLVER, ERROR_HANDLER, fConfigurationCONDITIONAL_IGNORE, CONDITIONAL_INCLUDEOCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE| Constructor and Description |
|---|
SAXParserImpl.JAXPSAXParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getFeature(String name)
Query the state of a feature.
|
Object |
getProperty(String name)
Query the value of a property.
|
void |
parse(InputSource inputSource)
parse
|
void |
parse(String systemId)
Parses the input source specified by the given system identifier.
|
void |
setFeature(String name,
boolean value)
Override SAXParser's setFeature method to track the initial state
of features.
|
void |
setProperty(String name,
Object value)
Override SAXParser's setProperty method to track the initial state
of properties.
|
attributeDecl, characters, comment, doctypeDecl, elementDecl, endCDATA, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endNamespaceMapping, endParameterEntity, externalEntityDecl, getAttributePSVI, getAttributePSVIByName, getContentHandler, getDeclHandler, getDTDHandler, getElementPSVI, getEntityResolver, getErrorHandler, getLexicalHandler, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, reset, setContentHandler, setDeclHandler, setDocumentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setLexicalHandler, setLocale, startCDATA, startDocument, startElement, startExternalSubset, startGeneralEntity, startNamespaceMapping, startParameterEntity, unparsedEntityDecl, xmlDeclany, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDeclpublic void setFeature(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.public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
AbstractSAXParsergetFeature in interface XMLReadergetFeature in class AbstractSAXParsername - The unique identifier (URI) of the feature
being set.SAXNotRecognizedException - If the
requested feature is not known.SAXNotSupportedException - If the
requested feature is known but not supported.public void setProperty(String name, 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 Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
AbstractSAXParsergetProperty in interface XMLReadergetProperty in class AbstractSAXParsername - The unique identifier (URI) of the property
being set.SAXNotRecognizedException - If the
requested property is not known.SAXNotSupportedException - If the
requested property is known but not supported.public void parse(InputSource inputSource) throws SAXException, IOException
AbstractSAXParserparse in interface Parserparse in interface XMLReaderparse in class AbstractSAXParserSAXExceptionIOExceptionpublic void parse(String systemId) throws SAXException, 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 - Throws exception on SAX error.IOException - Throws exception on i/o error.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.