Package eu.bandm.tools.util.xml
Class SaxExceptionCatcher
java.lang.Object
eu.bandm.tools.util.xml.ContentProxy
eu.bandm.tools.util.xml.SaxExceptionCatcher
- All Implemented Interfaces:
ContentHandler
- Direct Known Subclasses:
ExceptionCatcher_jaxp
,ExceptionCatcher_sax
Catches all exxeptions which occur when the call-back methods are invoked
and sends them to some listener object. The class of that is defined by the
subclass of ths class.
-
Field Summary
Fields inherited from class eu.bandm.tools.util.xml.ContentProxy
out
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int end) void
void
endElement
(String uri, String localName, String qName) void
endPrefixMapping
(String prefix) void
ignorableWhitespace
(char[] ch, int start, int end) static Location<XMLDocumentIdentifier>
static Location<XMLDocumentIdentifier>
location
(SAXException ex) static Location<XMLDocumentIdentifier>
void
processingInstruction
(String target, String data) protected abstract void
void
setDocumentLocator
(Locator locator) void
skippedEntity
(String name) void
void
startElement
(String uri, String localName, String qName, Attributes attrs) void
startPrefixMapping
(String prefix, String uri) 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
-
SaxExceptionCatcher
-
-
Method Details
-
send
-
location
-
location
-
location
-
characters
public void characters(char[] ch, int start, int end) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classContentProxy
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classContentProxy
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentProxy
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classContentProxy
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int end) - Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classContentProxy
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classContentProxy
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classContentProxy
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classContentProxy
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classContentProxy
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentProxy
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classContentProxy
-