@Deprecated public abstract class AbstractContentHandler extends Object implements ContentHandler, LexicalHandler
ContentHandler interface.| Constructor and Description |
|---|
AbstractContentHandler()
Deprecated.
|
AbstractContentHandler(ContentHandler ch)
Deprecated.
|
AbstractContentHandler(ContentHandler ch,
LexicalHandler lh)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
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 |
endDocument()
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 |
endEntity(String name)
Deprecated.
Report the end of an entity.
|
void |
endPrefixMapping(String prefix)
Deprecated.
End the scope of a prefix-URI mapping.
|
ContentHandler |
getContentHandler()
Deprecated.
|
LexicalHandler |
getLexicalHandler()
Deprecated.
|
void |
ignorableWhitespace(char[] ch,
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 |
setContentHandler(ContentHandler ch)
Deprecated.
|
void |
setDocumentLocator(Locator locator)
Deprecated.
Receive an object for locating the origin of SAX document events.
|
void |
setLexicalHandler(LexicalHandler lh)
Deprecated.
|
void |
skippedEntity(String name)
Deprecated.
Receive notification of a skipped entity.
|
void |
startCDATA()
Deprecated.
Report the start of a CDATA section.
|
void |
startDocument()
Deprecated.
Receive notification of the beginning of a document.
|
void |
startDTD(String name,
String publicId,
String systemId)
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.
|
public AbstractContentHandler()
public AbstractContentHandler(ContentHandler ch)
public AbstractContentHandler(ContentHandler ch, LexicalHandler lh)
public void setContentHandler(ContentHandler ch)
public void setLexicalHandler(LexicalHandler lh)
public ContentHandler getContentHandler()
public LexicalHandler getLexicalHandler()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerlocator - An object that can return the location of any SAX
document event.public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerprefix - The Namespace prefix being declared.uri - The Namespace URI the prefix is mapped to.SAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerprefix - The prefix that was being mapping.SAXExceptionpublic void startElement(String uri, String loc, String raw, Attributes a) throws SAXException
startElement in interface ContentHandleruri - 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.SAXExceptionpublic void endElement(String uri, String loc, String raw) throws SAXException
endElement in interface ContentHandleruri - 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.SAXExceptionpublic void characters(char[] ch,
int start,
int len)
throws SAXException
characters in interface ContentHandlerch - The characters from the XML document.start - The start position in the array.len - The number of characters to read from the array.SAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int len)
throws SAXException
ignorableWhitespace in interface ContentHandlerch - The characters from the XML document.start - The start position in the array.len - The number of characters to read from the array.SAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlertarget - The processing instruction target.data - The processing instruction data, or null if none was
supplied.SAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlername - The name of the skipped entity. If it is a parameter
entity, the name will begin with '%'.SAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlername - 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.SAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionpublic void startEntity(String name) throws SAXException
startEntity in interface LexicalHandlername - The name of the entity. If it is a parameter entity, the
name will begin with '%'.SAXExceptionpublic void endEntity(String name) throws SAXException
endEntity in interface LexicalHandlername - The name of the entity that is ending.SAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int len)
throws SAXException
comment in interface LexicalHandlerch - 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.SAXExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved