Package org.xmldb.api.sdk.modules
Class SetContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.xmldb.api.sdk.modules.SetContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Simple ContentHandler that just converts the SAX event stream into a text
representation of the document and stores it in the associated resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Receive notification of character data inside an element.voidReceive notification of the end of the document.voidendElement(String uri, String localName, String qName) Receive notification of the end of an element.voidendPrefixMapping(String prefix) Receive notification of the end of a Namespace mapping.voidignorableWhitespace(char[] ch, int start, int length) Receive notification of ignorable whitespace in element content.voidprocessingInstruction(String target, String data) Receive notification of a processing instruction.voidskippedEntity(String name) Receive notification of a skipped entity.voidReceive notification of the beginning of the document.voidstartElement(String uri, String localName, String qName, Attributes attributes) Receive notification of the start of an element.voidstartPrefixMapping(String prefix, String uri) Receive notification of the start of a Namespace mapping.Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, setDocumentLocator, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SetContentHandler
-
-
Method Details
-
startDocument
Receive notification of the beginning of the document.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException- Description of Exception- See Also:
-
endDocument
Receive notification of the end of the document.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException- Description of Exception- See Also:
-
startPrefixMapping
Receive notification of the start of a Namespace mapping.- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Parameters:
prefix- The Namespace prefix being declared.uri- The Namespace URI mapped to the prefix.- Throws:
SAXException- Description of Exception- See Also:
-
endPrefixMapping
Receive notification of the end of a Namespace mapping.- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classDefaultHandler- Parameters:
prefix- The Namespace prefix being declared.- Throws:
SAXException- Description of Exception- See Also:
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Receive notification of the start of an element.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
uri- Description of ParameterlocalName- Description of ParameterqName- Description of Parameterattributes- The specified or defaulted attributes.- Throws:
SAXException- Description of Exception- See Also:
-
endElement
Receive notification of the end of an element.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Parameters:
uri- Description of ParameterlocalName- Description of ParameterqName- Description of Parameter- Throws:
SAXException- Description of Exception- See Also:
-
characters
Receive notification of character data inside an element.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Parameters:
ch- The characters.start- The start position in the character array.length- The number of characters to use from the character array.- Throws:
SAXException- Description of Exception- See Also:
-
ignorableWhitespace
Receive notification of ignorable whitespace in element content.- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler- Parameters:
ch- The whitespace characters.start- The start position in the character array.length- The number of characters to use from the character array.- Throws:
SAXException- Description of Exception- See Also:
-
processingInstruction
Receive notification of a processing instruction.- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classDefaultHandler- Parameters:
target- The processing instruction target.data- The processing instruction data, or null if none is supplied.- Throws:
SAXException- Description of Exception- See Also:
-
skippedEntity
Receive notification of a skipped entity.- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classDefaultHandler- Parameters:
name- The name of the skipped entity.- Throws:
SAXException- Description of Exception- See Also:
-