|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mkdoc.sax.AbstractContentHandler
An inert base implementation of a
ContentHandler
.
Subclasses must implement startElement
and endElement
.
Field Summary | |
protected org.xml.sax.Locator |
locator
The locator for this parse. |
Constructor Summary | |
AbstractContentHandler()
|
Method Summary | |
void |
characters(char[] charArray,
int start,
int length)
Process character content. |
void |
endDocument()
Process the end document event. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Process the end element event. |
void |
endPrefixMapping(java.lang.String prefix)
Process the end prefix mapping event. |
protected java.lang.String |
getAttributeValue(org.xml.sax.Attributes attributes,
int index)
Get a single attribute value from a set of attributes. |
void |
ignorableWhitespace(char[] charArray,
int start,
int length)
Process ignorable whitespace. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Handle a processing instruction. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set a Locator object for a parse. |
void |
skippedEntity(java.lang.String name)
Process a skipped entity. |
void |
startDocument()
Process the start document event. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Process the start element event. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Process the start prefix mapping event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.xml.sax.Locator locator
Constructor Detail |
public AbstractContentHandler()
Method Detail |
public final void setDocumentLocator(org.xml.sax.Locator locator)
Locator
object for a parse.
setDocumentLocator
in interface org.xml.sax.ContentHandler
locator
- The locator to use.public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- Never thrown by this
implementation.public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- Never thrown by this
implementation.public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- The namespace prefix to map.uri
- The namespace URI to alias.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- The namespace prefix that was being
mapped.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
uri
- The namespace URI for the element.localName
- The local element name.qName
- The qualified element name.atts
- A set of attributes.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
uri
- The namespace URI for the element.localName
- The local element name.qName
- The qualified element name.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void characters(char[] charArray, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
charArray
- The character array to process.start
- The start index of the characters.length
- The number of characters to read.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void ignorableWhitespace(char[] charArray, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
charArray
- The character array to process.start
- The start index of the characters.length
- The number of characters to read.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
target
- The target application identifier.data
- The data to pass to the
application.
org.xml.sax.SAXException
- Never thrown by this
implementation.public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
name
- The name of the skipped entity.
org.xml.sax.SAXException
- Never thrown by this
implementation.protected final java.lang.String getAttributeValue(org.xml.sax.Attributes attributes, int index)
attributes
- The attribute set from which to extract the value.index
- The index of the attribute to get.
null
if out of range.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |