Package org.apache.cocoon.xml.sax
Class AbstractSAXConsumer
java.lang.Object
org.apache.cocoon.xml.sax.AbstractSAXConsumer
- All Implemented Interfaces:
ContentHandler,LexicalHandler
@Deprecated(since="2022-01-27")
public abstract class AbstractSAXConsumer
extends Object
implements ContentHandler, LexicalHandler
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
This abstract class provides default implementation of the methods specified
by the
ContentHandler and the LexicalHandler interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, 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.voidDeprecated.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.voidDeprecated.Report the end of an entity.voidendPrefixMapping(String prefix) Deprecated.End the scope of a prefix-URI mapping.voidignorableWhitespace(char[] ch, 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.voidDeprecated.Report the start of a CDATA section.voidDeprecated.Receive notification of the beginning of a document.voidDeprecated.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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
AbstractSAXConsumer
public AbstractSAXConsumer()Deprecated.
-
-
Method Details
-
setDocumentLocator
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
Deprecated.Receive notification of the beginning of a document.- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
Deprecated.Receive notification of the end of a document.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
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
Deprecated.End the scope of a prefix-URI mapping.- Specified by:
endPrefixMappingin interfaceContentHandler- Parameters:
prefix- The prefix that was being mapping.- Throws:
SAXException
-
startElement
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
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
Deprecated.Receive notification of character data.- Specified by:
charactersin interfaceContentHandler- Parameters:
ch- 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:
ignorableWhitespacein interfaceContentHandler- Parameters:
ch- 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:
processingInstructionin 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:
skippedEntityin 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:
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
Deprecated.Report the end of DTD declarations.- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
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
Deprecated.Report the end of an entity.- Specified by:
endEntityin interfaceLexicalHandler- Parameters:
name- The name of the entity that is ending.- Throws:
SAXException
-
startCDATA
Deprecated.Report the start of a CDATA section.- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
Deprecated.Report the end of a CDATA section.- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
Deprecated.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
-