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
Constructor and Description |
---|
SAXParserImpl.JAXPSAXParser() |
Modifier and Type | Method and Description |
---|---|
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(org.xml.sax.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.
|
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(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in interface org.xml.sax.XMLReader
setFeature
in class AbstractSAXParser
name
- The unique identifier (URI) of the feature.value
- The requested state of the feature (true or false).org.xml.sax.SAXNotRecognizedException
- If the
requested feature is not known.org.xml.sax.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 org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
AbstractSAXParser
getFeature
in interface org.xml.sax.XMLReader
getFeature
in class AbstractSAXParser
name
- The unique identifier (URI) of the feature
being set.org.xml.sax.SAXNotRecognizedException
- If the feature
value can't be assigned or retrieved.org.xml.sax.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 org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setProperty
in interface org.xml.sax.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.org.xml.sax.SAXNotRecognizedException
- If the
requested property is not known.org.xml.sax.SAXNotSupportedException
- If the
requested property is known, but the requested
value is not supported.public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
AbstractSAXParser
getProperty
in interface org.xml.sax.XMLReader
getProperty
in class AbstractSAXParser
name
- The unique identifier (URI) of the property
being set.org.xml.sax.SAXNotRecognizedException
- If the property
value can't be assigned or retrieved.org.xml.sax.SAXNotSupportedException
- If the
requested property is known but not supported.XMLReader.setProperty(java.lang.String, java.lang.Object)
public void parse(org.xml.sax.InputSource inputSource) throws org.xml.sax.SAXException, java.io.IOException
AbstractSAXParser
parse
in interface org.xml.sax.Parser
parse
in interface org.xml.sax.XMLReader
parse
in class AbstractSAXParser
inputSource
- The input source for the top-level of the
XML document.org.xml.sax.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 org.xml.sax.SAXException, java.io.IOException
AbstractSAXParser
This method is equivalent to the following:
parse(new InputSource(systemId));
parse
in interface org.xml.sax.Parser
parse
in interface org.xml.sax.XMLReader
parse
in class AbstractSAXParser
systemId
- The system identifier (URI).org.xml.sax.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)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.