public class EmbeddedSAXPipe extends AbstractSAXPipe
Constructor and Description |
---|
EmbeddedSAXPipe(org.xml.sax.ContentHandler handler)
Creates an EmbeddedXMLPipe that writes into the given ContentHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
comment(char[] ch,
int start,
int len)
Ignore all
comment events if between
startDTD/endDTD events. |
void |
endDocument()
Ignore the
endDocument event: this method does nothing. |
void |
endDTD()
Ignore the
endDTD event: this method does nothing. |
void |
startDocument()
Ignore the
startDocument event: this method does nothing. |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Ignore the
startDTD event: this method does nothing. |
characters, endCDATA, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startElement, startEntity, startPrefixMapping
recycle, setContentHandler
public EmbeddedSAXPipe(org.xml.sax.ContentHandler handler)
public void startDocument() throws org.xml.sax.SAXException
startDocument
event: this method does nothing.startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class AbstractSAXPipe
org.xml.sax.SAXException
- if an error occurspublic void endDocument() throws org.xml.sax.SAXException
endDocument
event: this method does nothing.endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class AbstractSAXPipe
org.xml.sax.SAXException
- if an error occurspublic void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
event: this method does nothing.startDTD
in interface org.xml.sax.ext.LexicalHandler
startDTD
in class AbstractSAXPipe
name
- The document type name.publicId
- The declared public identifier for the external DTD
subset, or null if none was declared.systemId
- The declared system identifier for the external DTD
subset, or null if none was declared.org.xml.sax.SAXException
- if an error occurspublic void endDTD() throws org.xml.sax.SAXException
endDTD
event: this method does nothing.endDTD
in interface org.xml.sax.ext.LexicalHandler
endDTD
in class AbstractSAXPipe
org.xml.sax.SAXException
- if an error occurspublic void comment(char[] ch, int start, int len) throws org.xml.sax.SAXException
comment
events if between
startDTD/endDTD events.comment
in interface org.xml.sax.ext.LexicalHandler
comment
in class AbstractSAXPipe
ch
- An array holding the characters in the comment.start
- The starting position in the array.len
- The number of characters to use from the array.org.xml.sax.SAXException
- if an error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"