public class IgnoreRootHandler extends ContentHandlerProxy implements LexicalHandler
Modifier and Type | Field and Description |
---|---|
private LexicalHandler |
_lexicalHandler |
Constructor and Description |
---|
IgnoreRootHandler(ContentHandler contentHandler)
Constructor
|
IgnoreRootHandler(ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endEntity(String name) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startEntity(String name) |
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
private LexicalHandler _lexicalHandler
public IgnoreRootHandler(ContentHandler contentHandler)
contentHandler
- the contentHandler to pass SAX events to. In case the ContentHandler
also implements the LexicalHandler
interface, it will be honoured.public IgnoreRootHandler(ContentHandler contentHandler, LexicalHandler lexicalHandler)
contentHandler
- the contentHandler to pass SAX events tolexicalHandler
- the lexicalHandler to pass lexical events to. May be null.public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class ContentHandlerProxy
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class ContentHandlerProxy
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException