public static class SAXParserImpl.JAXPSAXParser extends SAXParser
AbstractSAXParser.AttributesProxy, AbstractSAXParser.LocatorProxy
NOTIFY_BUILTIN_REFS, SYMBOL_TABLE, XMLGRAMMAR_POOL
ALLOW_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_INTERNING
fDocumentSource, fDTDContentModelSource, fDTDSource, fInDTD
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE
Constructor and Description |
---|
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, xmlDecl
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDecl
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
setFeature
in class AbstractSAXParser
name
- 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
AbstractSAXParser
getFeature
in interface XMLReader
getFeature
in class AbstractSAXParser
name
- 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 XMLReader
setProperty
in class AbstractSAXParser
name
- 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
AbstractSAXParser
getProperty
in interface XMLReader
getProperty
in class AbstractSAXParser
name
- 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
AbstractSAXParser
parse
in interface Parser
parse
in interface XMLReader
parse
in class AbstractSAXParser
SAXException
IOException
public void parse(String systemId) throws SAXException, IOException
AbstractSAXParser
This method is equivalent to the following:
parse(new InputSource(systemId));
parse
in interface Parser
parse
in interface XMLReader
parse
in class AbstractSAXParser
systemId
- The system identifier (URI).SAXException
- Throws exception on SAX error.IOException
- Throws exception on i/o error.Copyright © 2018 JBoss by Red Hat. All rights reserved.