public static class DomHelper.StartHandler extends DefaultHandler
Constructor and Description |
---|
StartHandler(ContentHandler next,
Map<String,String> dtdMappings)
Create a filter that is chained to another handler.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] arg0,
int arg1,
int arg2) |
void |
endDocument() |
void |
endElement(String arg0,
String arg1,
String arg2) |
void |
endPrefixMapping(String arg0) |
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
void |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2) |
void |
processingInstruction(String arg0,
String arg1) |
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String arg0) |
void |
startDocument() |
void |
startElement(String uri,
String loc,
String raw,
Attributes attrs) |
void |
startPrefixMapping(String arg0,
String arg1) |
void |
warning(SAXParseException exception) |
notationDecl, unparsedEntityDecl
public StartHandler(ContentHandler next, Map<String,String> dtdMappings)
next
- the next handler in the chain.dtdMappings
- map of DTD mappingspublic void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String uri, String loc, String raw, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String arg0, String arg1, String arg2) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void startPrefixMapping(String arg0, String arg1) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
SAXException
public void endPrefixMapping(String arg0) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class DefaultHandler
SAXException
public void characters(char[] arg0, int arg1, int arg2) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class DefaultHandler
SAXException
public void processingInstruction(String arg0, String arg1) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
SAXException
public void skippedEntity(String arg0) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class DefaultHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
public void warning(SAXParseException exception)
warning
in interface ErrorHandler
warning
in class DefaultHandler
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.