|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StAXContentHandler
Receive notification of the logical content of a sub-tree of a document and provide access to delegation and id mapping services.
StAXDelegationContext,
allowing delegation of sub-trees to other content handlers.StAXContext, allowing
for the mapping of XML ids to java objects.
| Field Summary | |
|---|---|
static StAXContentHandler |
IGNORE
No-op instance of StAXContentHandler. |
| 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. |
| Field Detail |
|---|
static final StAXContentHandler IGNORE
| Method Detail |
|---|
void startTree(StAXContext ctx)
throws SAXException
ctx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
Object endTree(StAXContext ctx)
throws SAXException
ctx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
void characters(char[] ch,
int start,
int length,
StAXContext ctx)
throws SAXException
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 exception
void ignorableWhitespace(char[] ch,
int start,
int length,
StAXContext ctx)
throws SAXException
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 exception
void startPrefixMapping(String prefix,
String uri,
StAXContext ctx)
throws SAXException
prefix - namespace prefix being declareduri - namespace URI the prefix is mapped toctx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
void endPrefixMapping(String prefix,
StAXContext ctx)
throws SAXException
prefix - prefix that was being mappedctx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
void processingInstruction(String target,
String data,
StAXContext ctx)
throws SAXException
target - processing instruction targetdata - processing instruction datactx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
void setDocumentLocator(Locator locator,
StAXContext ctx)
locator - an object that can return the location of any SAX document eventctx - StAX context
void skippedEntity(String name,
StAXContext ctx)
throws SAXException
name - name of the skipped entityctx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
void startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
StAXDelegationContext dctx)
throws SAXException
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 exception
void endElement(String nsURI,
String localName,
String qName,
Object result,
StAXContext ctx)
throws SAXException
nsURI - namespace URIlocalName - local name (without prefix)qName - qualified XML name (with prefix)result - resultctx - StAX context
SAXException - any SAX exception, possibly wrapping another exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||