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 Constructor Description AbstractSAXPipe()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcharacters(char[] c, int start, int len)Deprecated.Receive notification of character data.voidcomment(char[] ch, int start, int len)Deprecated.Report an XML comment anywhere in the document.voidendCDATA()Deprecated.Report the end of a CDATA section.voidendDocument()Deprecated.Receive notification of the end of a document.voidendDTD()Deprecated.Report the end of DTD declarations.voidendElement(String uri, String loc, String raw)Deprecated.Receive notification of the end of an element.voidendEntity(String name)Deprecated.Report the end of an entity.voidendPrefixMapping(String prefix)Deprecated.End the scope of a prefix-URI mapping.voidignorableWhitespace(char[] c, int start, int len)Deprecated.Receive notification of ignorable whitespace in element content.voidprocessingInstruction(String target, String data)Deprecated.Receive notification of a processing instruction.voidsetDocumentLocator(Locator locator)Deprecated.Receive an object for locating the origin of SAX document events.voidskippedEntity(String name)Deprecated.Receive notification of a skipped entity.voidstartCDATA()Deprecated.Report the start of a CDATA section.voidstartDocument()Deprecated.Receive notification of the beginning of a document.voidstartDTD(String name, String publicId, String systemId)Deprecated.Report the start of DTD declarations, if any.voidstartElement(String uri, String loc, String raw, Attributes a)Deprecated.Receive notification of the beginning of an element.voidstartEntity(String name)Deprecated.Report the beginning of an entity.voidstartPrefixMapping(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
-
-
-
-
Method Detail
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
Deprecated.Receive an object for locating the origin of SAX document events.- Specified by:
setDocumentLocatorin interfaceContentHandler- Parameters:
locator- An object that can return the location of any SAX document event.
-
startDocument
public void startDocument() throws SAXExceptionDeprecated.Receive notification of the beginning of a document.- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXExceptionDeprecated.Receive notification of the end of a document.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
Deprecated.Begin the scope of a prefix-URI Namespace mapping.- Specified by:
startPrefixMappingin interfaceContentHandler- Parameters:
prefix- The Namespace prefix being declared.uri- The Namespace URI the prefix is mapped to.- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
Deprecated.End the scope of a prefix-URI mapping.- Specified by:
endPrefixMappingin interfaceContentHandler- Parameters:
prefix- The prefix that was being mapping.- Throws:
SAXException
-
startElement
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException
Deprecated.Receive notification of the beginning of an element.- Specified by:
startElementin 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
public void endElement(String uri, String loc, String raw) throws SAXException
Deprecated.Receive notification of the end of an element.- Specified by:
endElementin 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
public void characters(char[] c, int start, int len) throws SAXExceptionDeprecated.Receive notification of character data.- Specified by:
charactersin 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
public void ignorableWhitespace(char[] c, int start, int len) throws SAXExceptionDeprecated.Receive notification of ignorable whitespace in element content.- Specified by:
ignorableWhitespacein 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
public void processingInstruction(String target, String data) throws SAXException
Deprecated.Receive notification of a processing instruction.- Specified by:
processingInstructionin interfaceContentHandler- Parameters:
target- The processing instruction target.data- The processing instruction data, or null if none was supplied.- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
Deprecated.Receive notification of a skipped entity.- Specified by:
skippedEntityin interfaceContentHandler- Parameters:
name- The name of the skipped entity. If it is a parameter entity, the name will begin with '%'.- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
Deprecated.Report the start of DTD declarations, if any.- Specified by:
startDTDin 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
public void endDTD() throws SAXExceptionDeprecated.Report the end of DTD declarations.- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
Deprecated.Report the beginning of an entity.- Specified by:
startEntityin interfaceLexicalHandler- Parameters:
name- The name of the entity. If it is a parameter entity, the name will begin with '%'.- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
Deprecated.Report the end of an entity.- Specified by:
endEntityin interfaceLexicalHandler- Parameters:
name- The name of the entity that is ending.- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXExceptionDeprecated.Report the start of a CDATA section.- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXExceptionDeprecated.Report the end of a CDATA section.- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int len) throws SAXExceptionDeprecated.Report an XML comment anywhere in the document.- Specified by:
commentin 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
-
-