Package org.apache.cocoon.xml.sax
Class EmbeddedSAXPipe
java.lang.Object
org.apache.cocoon.xml.sax.AbstractSAXProducer
org.apache.cocoon.xml.sax.AbstractSAXPipe
org.apache.cocoon.xml.sax.EmbeddedSAXPipe
- All Implemented Interfaces:
ContentHandler,LexicalHandler
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
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.
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedSAXPipe(ContentHandler handler) Deprecated.Creates an EmbeddedXMLPipe that writes into the given ContentHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoidcomment(char[] ch, int start, int len) Deprecated.Ignore allcommentevents if between startDTD/endDTD events.voidDeprecated.Ignore theendDocumentevent: this method does nothing.voidendDTD()Deprecated.Ignore theendDTDevent: this method does nothing.voidDeprecated.Ignore thestartDocumentevent: this method does nothing.voidDeprecated.Ignore thestartDTDevent: 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, startPrefixMappingMethods inherited from class org.apache.cocoon.xml.sax.AbstractSAXProducer
recycle, setContentHandlerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
EmbeddedSAXPipe
Deprecated.Creates an EmbeddedXMLPipe that writes into the given ContentHandler.
-
-
Method Details
-
startDocument
Deprecated.Ignore thestartDocumentevent: this method does nothing.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classAbstractSAXPipe- Throws:
SAXException- if an error occurs
-
endDocument
Deprecated.Ignore theendDocumentevent: this method does nothing.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classAbstractSAXPipe- Throws:
SAXException- if an error occurs
-
startDTD
Deprecated.Ignore thestartDTDevent: this method does nothing.- Specified by:
startDTDin interfaceLexicalHandler- Overrides:
startDTDin classAbstractSAXPipe- Parameters:
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.- Throws:
SAXException- if an error occurs
-
endDTD
Deprecated.Ignore theendDTDevent: this method does nothing.- Specified by:
endDTDin interfaceLexicalHandler- Overrides:
endDTDin classAbstractSAXPipe- Throws:
SAXException- if an error occurs
-
comment
Deprecated.Ignore allcommentevents if between startDTD/endDTD events.- Specified by:
commentin interfaceLexicalHandler- Overrides:
commentin classAbstractSAXPipe- Parameters:
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.- Throws:
SAXException- if an error occurs
-