CURRENT_ELEMENT_NODE
protected static final String CURRENT_ELEMENT_NODE
Current element node.
DOCUMENT_FRAGMENT
protected static final String DOCUMENT_FRAGMENT
Document fragment balancing only.
ERROR_HANDLER
protected static final String ERROR_HANDLER
Property identifier: error handler.
RECOGNIZED_FEATURES
protected static final String[] RECOGNIZED_FEATURES
Recognized features.
RECOGNIZED_PROPERTIES
protected static final String[] RECOGNIZED_PROPERTIES
Recognized properties.
fCurrentNode
protected Node fCurrentNode
Current node.
fDocument
protected Document fDocument
Document.
fDocumentFragment
protected DocumentFragment fDocumentFragment
DOM document fragment.
fDocumentSource
protected XMLDocumentSource fDocumentSource
Document source.
fInCDATASection
protected boolean fInCDATASection
True if within a CDATA section.
fParserConfiguration
protected XMLParserConfiguration fParserConfiguration
Parser configuration.
characters
public void characters(XMLString text,
Augmentations augs)
throws XNIException
Characters.
comment
public void comment(XMLString text,
Augmentations augs)
throws XNIException
Comment.
doctypeDecl
public void doctypeDecl(String root,
String pubid,
String sysid,
Augmentations augs)
throws XNIException
Document type declaration.
emptyElement
public void emptyElement(QName element,
XMLAttributes attrs,
Augmentations augs)
throws XNIException
Empty element.
endCDATA
public void endCDATA(Augmentations augs)
throws XNIException
End CDATA section.
endDocument
public void endDocument(Augmentations augs)
throws XNIException
End document.
endElement
public void endElement(QName element,
Augmentations augs)
throws XNIException
End element.
endGeneralEntity
public void endGeneralEntity(String name,
Augmentations augs)
throws XNIException
End general entity.
endPrefixMapping
public void endPrefixMapping(String prefix,
Augmentations augs)
throws XNIException
End prefix mapping. @deprecated Since Xerces 2.2.0.
getDocumentSource
public XMLDocumentSource getDocumentSource()
Returns the document source.
getErrorHandler
public ErrorHandler getErrorHandler()
Return the current error handler.
- The current error handler, or null if none
has been registered.
getFeature
public boolean getFeature(String featureId)
throws SAXNotRecognizedException,
SAXNotSupportedException
Query the state of a feature.
Query the current state of any feature in a SAX2 parser. The
parser might not recognize the feature.
featureId
- The unique identifier (URI) of the feature
being set.
- The current state of the feature.
getProperty
public Object getProperty(String propertyId)
throws SAXNotRecognizedException,
SAXNotSupportedException
Query the value of a property.
Return the current value of a property in a SAX2 parser.
The parser might not recognize the property.
propertyId
- The unique identifier (URI) of the property
being set.
- The current value of the property.
ignorableWhitespace
public void ignorableWhitespace(XMLString text,
Augmentations augs)
throws XNIException
Ignorable whitespace.
parse
public void parse(InputSource source,
DocumentFragment fragment)
throws SAXException,
IOException
Parses a document fragment.
parse
public void parse(String systemId,
DocumentFragment fragment)
throws SAXException,
IOException
Parses a document fragment.
processingInstruction
public void processingInstruction(String target,
XMLString data,
Augmentations augs)
throws XNIException
Processing instruction.
setDocumentSource
public void setDocumentSource(XMLDocumentSource source)
Sets the document source.
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
Allow an application to register an error event handler.
If the application does not register an error handler, all
error events reported by the SAX parser will be silently
ignored; however, normal processing may not continue. It is
highly recommended that all SAX applications implement an
error handler to avoid unexpected bugs.
Applications may register a new or different handler in the
middle of a parse, and the SAX parser must begin using the new
handler immediately.
errorHandler
- The error handler.
setFeature
public void setFeature(String featureId,
boolean state)
throws SAXNotRecognizedException,
SAXNotSupportedException
Set the state of any feature in a SAX2 parser. The parser
might not recognize the feature, and if it does recognize
it, it might not be able to fulfill the request.
featureId
- The unique identifier (URI) of the feature.state
- The requested state of the feature (true or false).
setProperty
public void setProperty(String propertyId,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
Set the value of any property in a SAX2 parser. The parser
might not recognize the property, and if it does recognize
it, it might not support the requested value.
propertyId
- The unique identifier (URI) of the property
being set.value
- The value to which the property is being set.
startCDATA
public void startCDATA(Augmentations augs)
throws XNIException
Start CDATA section.
startDocument
public void startDocument(XMLLocator locator,
String encoding,
Augmentations augs)
throws XNIException
Start document.
startDocument
public void startDocument(XMLLocator locator,
String encoding,
NamespaceContext nscontext,
Augmentations augs)
throws XNIException
Start document.
startElement
public void startElement(QName element,
XMLAttributes attrs,
Augmentations augs)
throws XNIException
Start element.
startGeneralEntity
public void startGeneralEntity(String name,
XMLResourceIdentifier id,
String encoding,
Augmentations augs)
throws XNIException
Start general entity.
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri,
Augmentations augs)
throws XNIException
Start prefix mapping. @deprecated Since Xerces 2.2.0.
textDecl
public void textDecl(String version,
String encoding,
Augmentations augs)
throws XNIException
Text declaration.
xmlDecl
public void xmlDecl(String version,
String encoding,
String standalone,
Augmentations augs)
throws XNIException
XML declaration.