org.mortbay.xml
Class XmlParser.Handler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.mortbay.xml.XmlParser.Handler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Enclosing class:
- XmlParser
private class XmlParser.Handler
- extends DefaultHandler
Method Summary |
void |
characters(char[] buf,
int offset,
int len)
|
(package private) void |
clear()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
error(SAXParseException ex)
|
void |
fatalError(SAXParseException ex)
|
private String |
getLocationString(SAXParseException ex)
|
void |
ignorableWhitespace(char[] buf,
int offset,
int len)
|
InputSource |
resolveEntity(String pid,
String sid)
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs)
|
void |
warning(SAXParseException ex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_top
XmlParser.Node _top
_error
SAXParseException _error
_context
private XmlParser.Node _context
_noop
private XmlParser.NoopHandler _noop
XmlParser.Handler
XmlParser.Handler()
clear
void clear()
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class DefaultHandler
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] buf,
int offset,
int len)
throws SAXException
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Overrides:
ignorableWhitespace
in class DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] buf,
int offset,
int len)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class DefaultHandler
- Throws:
SAXException
warning
public void warning(SAXParseException ex)
- Specified by:
warning
in interface ErrorHandler
- Overrides:
warning
in class DefaultHandler
error
public void error(SAXParseException ex)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Overrides:
error
in class DefaultHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException ex)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Overrides:
fatalError
in class DefaultHandler
- Throws:
SAXException
getLocationString
private String getLocationString(SAXParseException ex)
resolveEntity
public InputSource resolveEntity(String pid,
String sid)
- Specified by:
resolveEntity
in interface EntityResolver
- Overrides:
resolveEntity
in class DefaultHandler