Package org.apache.cocoon.xml.sax
Class AbstractSAXPipe
java.lang.Object
org.apache.cocoon.xml.sax.AbstractSAXProducer
org.apache.cocoon.xml.sax.AbstractSAXPipe
- All Implemented Interfaces:
ContentHandler
,LexicalHandler
- Direct Known Subclasses:
DOMBuilder
,EmbeddedSAXPipe
,SAXPipe
@Deprecated(since="2022-01-27")
public abstract class AbstractSAXPipe
extends AbstractSAXProducer
implements ContentHandler, LexicalHandler
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
This class provides a bridge class to connect to existing content
handlers and lexical handlers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] c, int start, int len) Deprecated.Receive notification of character data.void
comment
(char[] ch, int start, int len) Deprecated.Report an XML comment anywhere in the document.void
endCDATA()
Deprecated.Report the end of a CDATA section.void
Deprecated.Receive notification of the end of a document.void
endDTD()
Deprecated.Report the end of DTD declarations.void
endElement
(String uri, String loc, String raw) Deprecated.Receive notification of the end of an element.void
Deprecated.Report the end of an entity.void
endPrefixMapping
(String prefix) Deprecated.End the scope of a prefix-URI mapping.void
ignorableWhitespace
(char[] c, int start, int len) Deprecated.Receive notification of ignorable whitespace in element content.void
processingInstruction
(String target, String data) Deprecated.Receive notification of a processing instruction.void
setDocumentLocator
(Locator locator) Deprecated.Receive an object for locating the origin of SAX document events.void
skippedEntity
(String name) Deprecated.Receive notification of a skipped entity.void
Deprecated.Report the start of a CDATA section.void
Deprecated.Receive notification of the beginning of a document.void
Deprecated.Report the start of DTD declarations, if any.void
startElement
(String uri, String loc, String raw, Attributes a) Deprecated.Receive notification of the beginning of an element.void
startEntity
(String name) Deprecated.Report the beginning of an entity.void
startPrefixMapping
(String prefix, String uri) Deprecated.Begin the scope of a prefix-URI Namespace mapping.Methods inherited from class org.apache.cocoon.xml.sax.AbstractSAXProducer
recycle, setContentHandler
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
AbstractSAXPipe
public AbstractSAXPipe()Deprecated.
-
-
Method Details
-
setDocumentLocator
Deprecated.Receive an object for locating the origin of SAX document events.- Specified by:
setDocumentLocator
in interfaceContentHandler
- Parameters:
locator
- An object that can return the location of any SAX document event.
-
startDocument
Deprecated.Receive notification of the beginning of a document.- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
Deprecated.Receive notification of the end of a document.- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
Deprecated.Begin the scope of a prefix-URI Namespace mapping.- Specified by:
startPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.- Throws:
SAXException
-
endPrefixMapping
Deprecated.End the scope of a prefix-URI mapping.- Specified by:
endPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
- The prefix that was being mapping.- Throws:
SAXException
-
startElement
Deprecated.Receive notification of the beginning of an element.- Specified by:
startElement
in interfaceContentHandler
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.loc
- The local name (without prefix), or the empty string if Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.a
- The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.- Throws:
SAXException
-
endElement
Deprecated.Receive notification of the end of an element.- Specified by:
endElement
in interfaceContentHandler
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.loc
- The local name (without prefix), or the empty string if Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.- Throws:
SAXException
-
characters
Deprecated.Receive notification of character data.- Specified by:
characters
in interfaceContentHandler
- Parameters:
c
- The characters from the XML document.start
- The start position in the array.len
- The number of characters to read from the array.- Throws:
SAXException
-
ignorableWhitespace
Deprecated.Receive notification of ignorable whitespace in element content.- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Parameters:
c
- The characters from the XML document.start
- The start position in the array.len
- The number of characters to read from the array.- Throws:
SAXException
-
processingInstruction
Deprecated.Receive notification of a processing instruction.- Specified by:
processingInstruction
in interfaceContentHandler
- Parameters:
target
- The processing instruction target.data
- The processing instruction data, or null if none was supplied.- Throws:
SAXException
-
skippedEntity
Deprecated.Receive notification of a skipped entity.- Specified by:
skippedEntity
in interfaceContentHandler
- Parameters:
name
- The name of the skipped entity. If it is a parameter entity, the name will begin with '%'.- Throws:
SAXException
-
startDTD
Deprecated.Report the start of DTD declarations, if any.- Specified by:
startDTD
in interfaceLexicalHandler
- 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
-
endDTD
Deprecated.Report the end of DTD declarations.- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
Deprecated.Report the beginning of an entity.- Specified by:
startEntity
in interfaceLexicalHandler
- Parameters:
name
- The name of the entity. If it is a parameter entity, the name will begin with '%'.- Throws:
SAXException
-
endEntity
Deprecated.Report the end of an entity.- Specified by:
endEntity
in interfaceLexicalHandler
- Parameters:
name
- The name of the entity that is ending.- Throws:
SAXException
-
startCDATA
Deprecated.Report the start of a CDATA section.- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
Deprecated.Report the end of a CDATA section.- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
Deprecated.Report an XML comment anywhere in the document.- Specified by:
comment
in interfaceLexicalHandler
- 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
-