| java.lang.Object org.cyberneko.html.parsers.DOMFragmentParser
DOMFragmentParser | public class DOMFragmentParser implements XMLDocumentHandler(Code) | | A DOM parser for HTML fragments.
author: Andy Clark version: $Id: DOMFragmentParser.java,v 1.8 2005/02/14 03:56:54 andyc Exp $ |
Method Summary | |
public void | characters(XMLString text, Augmentations augs) Characters. | public void | comment(XMLString text, Augmentations augs) Comment. | public void | doctypeDecl(String root, String pubid, String sysid, Augmentations augs) Document type declaration. | public void | emptyElement(QName element, XMLAttributes attrs, Augmentations augs) Empty element. | public void | endCDATA(Augmentations augs) End CDATA section. | public void | endDocument(Augmentations augs) End document. | public void | endElement(QName element, Augmentations augs) End element. | public void | endGeneralEntity(String name, Augmentations augs) End general entity. | public void | endPrefixMapping(String prefix, Augmentations augs) End prefix mapping. | public XMLDocumentSource | getDocumentSource() Returns the document source. | public ErrorHandler | getErrorHandler() Return the current error handler. | public boolean | getFeature(String featureId) Query the state of a feature.
Query the current state of any feature in a SAX2 parser. | public Object | getProperty(String propertyId) Query the value of a property.
Return the current value of a property in a SAX2 parser.
The parser might not recognize the property.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. | public void | ignorableWhitespace(XMLString text, Augmentations augs) Ignorable whitespace. | public void | parse(String systemId, DocumentFragment fragment) Parses a document fragment. | public void | parse(InputSource source, DocumentFragment fragment) Parses a document fragment. | public void | processingInstruction(String target, XMLString data, Augmentations augs) Processing instruction. | public void | setDocumentSource(XMLDocumentSource source) Sets the document source. | 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. | public void | setFeature(String featureId, boolean state) Set the state of any feature in a SAX2 parser. | public void | setProperty(String propertyId, Object value) Set the value of any property in a SAX2 parser. | public void | startCDATA(Augmentations augs) Start CDATA section. | public void | startDocument(XMLLocator locator, String encoding, Augmentations augs) Start document. | public void | startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) Start document. | public void | startElement(QName element, XMLAttributes attrs, Augmentations augs) Start element. | public void | startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) Start general entity. | public void | startPrefixMapping(String prefix, String uri, Augmentations augs) Start prefix mapping. | public void | textDecl(String version, String encoding, Augmentations augs) Text declaration. | public void | xmlDecl(String version, String encoding, String standalone, Augmentations augs) XML declaration. |
CURRENT_ELEMENT_NODE | final protected static String CURRENT_ELEMENT_NODE(Code) | | Current element node.
|
DOCUMENT_FRAGMENT | final protected static String DOCUMENT_FRAGMENT(Code) | | Document fragment balancing only.
|
ERROR_HANDLER | final protected static String ERROR_HANDLER(Code) | | Property identifier: error handler.
|
RECOGNIZED_FEATURES | final protected static String[] RECOGNIZED_FEATURES(Code) | | Recognized features.
|
RECOGNIZED_PROPERTIES | final protected static String[] RECOGNIZED_PROPERTIES(Code) | | Recognized properties.
|
fCurrentNode | protected Node fCurrentNode(Code) | | Current node.
|
fDocumentSource | protected XMLDocumentSource fDocumentSource(Code) | | Document source.
|
fInCDATASection | protected boolean fInCDATASection(Code) | | True if within a CDATA section.
|
fParserConfiguration | protected XMLParserConfiguration fParserConfiguration(Code) | | Parser configuration.
|
DOMFragmentParser | public DOMFragmentParser()(Code) | | Default constructor.
|
characters | public void characters(XMLString text, Augmentations augs) throws XNIException(Code) | | Characters.
|
comment | public void comment(XMLString text, Augmentations augs) throws XNIException(Code) | | Comment.
|
doctypeDecl | public void doctypeDecl(String root, String pubid, String sysid, Augmentations augs) throws XNIException(Code) | | Document type declaration.
|
emptyElement | public void emptyElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code) | | Empty element.
|
endCDATA | public void endCDATA(Augmentations augs) throws XNIException(Code) | | End CDATA section.
|
endDocument | public void endDocument(Augmentations augs) throws XNIException(Code) | | End document.
|
endElement | public void endElement(QName element, Augmentations augs) throws XNIException(Code) | | End element.
|
endGeneralEntity | public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code) | | End general entity.
|
endPrefixMapping | public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException(Code) | | End prefix mapping. @deprecated Since Xerces 2.2.0.
|
getDocumentSource | public XMLDocumentSource getDocumentSource()(Code) | | Returns the document source.
|
ignorableWhitespace | public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code) | | Ignorable whitespace.
|
processingInstruction | public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code) | | Processing instruction.
|
setDocumentSource | public void setDocumentSource(XMLDocumentSource source)(Code) | | Sets the document source.
|
setErrorHandler | public void setErrorHandler(ErrorHandler errorHandler)(Code) | | 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.
Parameters: errorHandler - The error handler. exception: java.lang.NullPointerException - If the handler argument is null. See Also: DOMFragmentParser.getErrorHandler |
setFeature | public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code) | | 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.
Parameters: featureId - The unique identifier (URI) of the feature. Parameters: state - The requested state of the feature (true or false). exception: SAXNotRecognizedException - If therequested feature is not known. exception: SAXNotSupportedException - If therequested feature is known, but the requestedstate is not supported. |
setProperty | public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code) | | 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.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. Parameters: value - The value to which the property is being set. exception: SAXNotRecognizedException - If therequested property is not known. exception: SAXNotSupportedException - If therequested property is known, but the requestedvalue is not supported. |
startCDATA | public void startCDATA(Augmentations augs) throws XNIException(Code) | | Start CDATA section.
|
startDocument | public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException(Code) | | Start document.
|
startDocument | public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code) | | Start document.
|
startElement | public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code) | | Start element.
|
startGeneralEntity | public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException(Code) | | Start general entity.
|
startPrefixMapping | public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException(Code) | | Start prefix mapping. @deprecated Since Xerces 2.2.0.
|
textDecl | public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code) | | Text declaration.
|
xmlDecl | public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code) | | XML declaration.
|
|
|