Package org.apache.commons.jelly.util
Class SafeContentHandler
java.lang.Object
org.apache.commons.jelly.util.SafeContentHandler
- All Implemented Interfaces:
ContentHandler
Ensures that only one start and end document event is passed onto the underlying
ContentHandler. This object can only be used once and then discarded.
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] arg0, int arg1, int arg2) voidvoidendElement(String arg0, String arg1, String arg2) voidendPrefixMapping(String arg0) voidignorableWhitespace(char[] arg0, int arg1, int arg2) voidprocessingInstruction(String arg0, String arg1) voidsetDocumentLocator(Locator arg0) voidskippedEntity(String arg0) voidvoidstartElement(String arg0, String arg1, String arg2, Attributes arg3) voidstartPrefixMapping(String arg0, String arg1) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SafeContentHandler
-
-
Method Details
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Parameters:
arg0-arg1-arg2-- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Parameters:
arg0-arg1-arg2-- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Parameters:
arg0-- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Parameters:
arg0-arg1-arg2-- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Parameters:
arg0-arg1-- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- Parameters:
arg0-
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Parameters:
arg0-- Throws:
SAXException
-
startElement
public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException - Specified by:
startElementin interfaceContentHandler- Parameters:
arg0-arg1-arg2-arg3-- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Parameters:
arg0-arg1-- Throws:
SAXException
-