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(since="2022-01-27") public class EmbeddedSAXPipe extends AbstractSAXPipe
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
Constructors Constructor Description EmbeddedSAXPipe(ContentHandler handler)
Deprecated.Creates an EmbeddedXMLPipe that writes into the given ContentHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
comment(char[] ch, int start, int len)
Deprecated.Ignore allcomment
events if between startDTD/endDTD events.void
endDocument()
Deprecated.Ignore theendDocument
event: this method does nothing.void
endDTD()
Deprecated.Ignore theendDTD
event: this method does nothing.void
startDocument()
Deprecated.Ignore thestartDocument
event: this method does nothing.void
startDTD(String name, String publicId, String systemId)
Deprecated.Ignore thestartDTD
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
-
-
-
-
Constructor Detail
-
EmbeddedSAXPipe
public EmbeddedSAXPipe(ContentHandler handler)
Deprecated.Creates an EmbeddedXMLPipe that writes into the given ContentHandler.
-
-
Method Detail
-
startDocument
public void startDocument() throws SAXException
Deprecated.Ignore thestartDocument
event: this method does nothing.- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classAbstractSAXPipe
- Throws:
SAXException
- if an error occurs
-
endDocument
public void endDocument() throws SAXException
Deprecated.Ignore theendDocument
event: this method does nothing.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classAbstractSAXPipe
- Throws:
SAXException
- if an error occurs
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
Deprecated.Ignore thestartDTD
event: this method does nothing.- Specified by:
startDTD
in interfaceLexicalHandler
- Overrides:
startDTD
in 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
public void endDTD() throws SAXException
Deprecated.Ignore theendDTD
event: this method does nothing.- Specified by:
endDTD
in interfaceLexicalHandler
- Overrides:
endDTD
in classAbstractSAXPipe
- Throws:
SAXException
- if an error occurs
-
comment
public void comment(char[] ch, int start, int len) throws SAXException
Deprecated.Ignore allcomment
events if between startDTD/endDTD events.- Specified by:
comment
in interfaceLexicalHandler
- Overrides:
comment
in 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
-
-