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 TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Receive notification of character data inside an element.void
Receive notification of the end of the document.void
endElement
(String uri, String localName, String qName) Receive notification of the end of an element.void
endPrefixMapping
(String prefix) Receive notification of the end of a Namespace mapping.void
ignorableWhitespace
(char[] ch, int start, int length) Receive notification of ignorable whitespace in element content.void
processingInstruction
(String target, String data) Receive notification of a processing instruction.void
skippedEntity
(String name) Receive notification of a skipped entity.void
Receive notification of the beginning of the document.void
startElement
(String uri, String localName, String qName, Attributes attributes) Receive notification of the start of an element.void
startPrefixMapping
(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, warning
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SetContentHandler
-
-
Method Details
-
startDocument
Receive notification of the beginning of the document.- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
- Description of Exception- See Also:
-
endDocument
Receive notification of the end of the document.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
- Description of Exception- See Also:
-
startPrefixMapping
Receive notification of the start of a Namespace mapping.- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in 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:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in 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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
attributes
- The specified or defaulted attributes.uri
- Description of ParameterlocalName
- Description of ParameterqName
- Description of Parameter- Throws:
SAXException
- Description of Exception- See Also:
-
endElement
Receive notification of the end of an element.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in 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:
characters
in interfaceContentHandler
- Overrides:
characters
in 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:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in 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:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in 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:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classDefaultHandler
- Parameters:
name
- The name of the skipped entity.- Throws:
SAXException
- Description of Exception- See Also:
-