|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.xml.sax.AbstractSAXProducer
org.apache.cocoon.xml.sax.AbstractSAXPipe
org.apache.cocoon.xml.sax.EmbeddedSAXPipe
public class EmbeddedSAXPipe
This class implements a ContentHandler for embedding a full SAX event stream into an existing stream of SAX events. An instance of this class will pass unmodified all the SAX events to the linked ContentHandler, but it will ignore the startDocument/endDocument and startDTD/endDTD events, as well as all comment events within the DTD.
| Field Summary |
|---|
| Fields inherited from class org.apache.cocoon.xml.sax.AbstractSAXProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler |
| Constructor Summary | |
|---|---|
EmbeddedSAXPipe(ContentHandler handler)
Creates an EmbeddedXMLPipe that writes into the given ContentHandler. |
|
| Method Summary | |
|---|---|
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(String name,
String publicId,
String systemId)
Ignore the startDTD event: this method does nothing. |
| Methods inherited from class org.apache.cocoon.xml.sax.AbstractSAXPipe |
|---|
characters, endCDATA, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startElement, startEntity, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.sax.AbstractSAXProducer |
|---|
recycle, setContentHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedSAXPipe(ContentHandler handler)
| Method Detail |
|---|
public void startDocument()
throws SAXException
startDocument event: this method does nothing.
startDocument in interface ContentHandlerstartDocument in class AbstractSAXPipeSAXException - if an error occurs
public void endDocument()
throws SAXException
endDocument event: this method does nothing.
endDocument in interface ContentHandlerendDocument in class AbstractSAXPipeSAXException - if an error occurs
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD event: this method does nothing.
startDTD in interface LexicalHandlerstartDTD in class AbstractSAXPipename - 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.
SAXException - if an error occurs
public void endDTD()
throws SAXException
endDTD event: this method does nothing.
endDTD in interface LexicalHandlerendDTD in class AbstractSAXPipeSAXException - if an error occurs
public void comment(char[] ch,
int start,
int len)
throws SAXException
comment events if between
startDTD/endDTD events.
comment in interface LexicalHandlercomment in class AbstractSAXPipech - 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.
SAXException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||