|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.stax.StAXContentHandlerBase
public class StAXContentHandlerBase
Simple implementation of the StAXContentHandler
interface, with empty implementations for all the methods.
This class is provided as a base for content handlers where the implementor does not wish to provide all the methods.
Field Summary |
---|
Fields inherited from interface net.sf.stax.StAXContentHandler |
---|
IGNORE |
Constructor Summary | |
---|---|
StAXContentHandlerBase()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length,
StAXContext ctx)
Receive notification of character data. |
void |
endElement(String nsURI,
String localName,
String qName,
Object result,
StAXContext ctx)
Receive notification of the end of an element. |
void |
endPrefixMapping(String prefix,
StAXContext ctx)
End the scope of a prefix-URI mapping. |
Object |
endTree(StAXContext ctx)
Receive notification of the end of a sub-tree of a document. |
void |
ignorableWhitespace(char[] ch,
int start,
int length,
StAXContext ctx)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(String target,
String data,
StAXContext ctx)
Receive notification of a processing instruction. |
void |
setDocumentLocator(Locator locator,
StAXContext ctx)
Receive an object for locating the origin of SAX document events. |
void |
skippedEntity(String name,
StAXContext ctx)
Receive notification of a skipped entity. |
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
StAXDelegationContext dctx)
Receive notification of the beginning of an element. |
void |
startPrefixMapping(String prefix,
String uri,
StAXContext ctx)
Begin the score of a prefix-URI Namespace mapping. |
void |
startTree(StAXContext ctx)
Receive notification of the beginning of a sub-tree of a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StAXContentHandlerBase()
Method Detail |
---|
public void startTree(StAXContext ctx) throws SAXException
StAXContentHandler
startTree
in interface StAXContentHandler
ctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public Object endTree(StAXContext ctx) throws SAXException
StAXContentHandler
endTree
in interface StAXContentHandler
ctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void characters(char[] ch, int start, int length, StAXContext ctx) throws SAXException
StAXContentHandler
characters
in interface StAXContentHandler
ch
- characters from the XML documentstart
- start position in the arraylength
- number of characters to read from the arrayctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void ignorableWhitespace(char[] ch, int start, int length, StAXContext ctx) throws SAXException
StAXContentHandler
ignorableWhitespace
in interface StAXContentHandler
ch
- characters from the XML documentstart
- start position in the arraylength
- number of characters to read from the arrayctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void startPrefixMapping(String prefix, String uri, StAXContext ctx) throws SAXException
StAXContentHandler
startPrefixMapping
in interface StAXContentHandler
prefix
- namespace prefix being declareduri
- namespace URI the prefix is mapped toctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void endPrefixMapping(String prefix, StAXContext ctx) throws SAXException
StAXContentHandler
endPrefixMapping
in interface StAXContentHandler
prefix
- prefix that was being mappedctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void processingInstruction(String target, String data, StAXContext ctx) throws SAXException
StAXContentHandler
processingInstruction
in interface StAXContentHandler
target
- processing instruction targetdata
- processing instruction datactx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void setDocumentLocator(Locator locator, StAXContext ctx)
StAXContentHandler
setDocumentLocator
in interface StAXContentHandler
locator
- an object that can return the location of any SAX document eventctx
- StAX contextStAXContentHandler
public void skippedEntity(String name, StAXContext ctx) throws SAXException
StAXContentHandler
skippedEntity
in interface StAXContentHandler
name
- name of the skipped entityctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void startElement(String nsURI, String localName, String qName, Attributes attrs, StAXDelegationContext dctx) throws SAXException
StAXContentHandler
startElement
in interface StAXContentHandler
nsURI
- namespace URIlocalName
- local name (without prefix)qName
- qualified XML name (with prefix)attrs
- attributes attached to the elementdctx
- StAX delegation context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
public void endElement(String nsURI, String localName, String qName, Object result, StAXContext ctx) throws SAXException
StAXContentHandler
endElement
in interface StAXContentHandler
nsURI
- namespace URIlocalName
- local name (without prefix)qName
- qualified XML name (with prefix)result
- resultctx
- StAX context
SAXException
- any SAX exception, possibly wrapping another exceptionStAXContentHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |