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 TypeMethodDescriptionvoid
characters
(char[] arg0, int arg1, int arg2) void
void
endElement
(String arg0, String arg1, String arg2) void
endPrefixMapping
(String arg0) void
ignorableWhitespace
(char[] arg0, int arg1, int arg2) void
processingInstruction
(String arg0, String arg1) void
setDocumentLocator
(Locator arg0) void
skippedEntity
(String arg0) void
void
startElement
(String arg0, String arg1, String arg2, Attributes arg3) void
startPrefixMapping
(String arg0, String arg1) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SafeContentHandler
-
-
Method Details
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Parameters:
arg0
-arg1
-arg2
-- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Parameters:
arg0
-arg1
-arg2
-- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Parameters:
arg0
-- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Parameters:
arg0
-arg1
-arg2
-- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Parameters:
arg0
-arg1
-- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Parameters:
arg0
-
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Parameters:
arg0
-- Throws:
SAXException
-
startElement
public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Parameters:
arg0
-arg1
-arg2
-arg3
-- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Parameters:
arg0
-arg1
-- Throws:
SAXException
-