org.biojava.utils.stax
Interface StAXContentHandler
- All Known Subinterfaces:
- XMLAnnotationTypeHandler.CollectionConstraintHandler, XMLAnnotationTypeHandler.PropertyConstraintHandler, XMLFilterHandler.FilterHandler
- All Known Implementing Classes:
- StAXContentHandlerBase
- public interface StAXContentHandler
Interface for StAX content handlers. This interface is
very similar in spirit and design to the SAX content handler.
Differences are:
- start/endDocument methods are replaced by start/endTree. This
recognises the fact that a StAX content handler may only see
a sub-tree of an XML document, rather than the whole document.
- the startElement method takes a
DelegationManager,
allowing delegation of sub-trees to other content handlers.
- Author:
- Thomas Down
|
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(String nsURI,
String localName,
String qName,
StAXContentHandler delegate)
|
void |
endPrefixMapping(String prefix)
|
void |
endTree()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
|
void |
skippedEntity(String name)
|
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
DelegationManager dm)
|
void |
startPrefixMapping(String prefix,
String uri)
|
void |
startTree()
|
startTree
public void startTree()
throws SAXException
- Throws:
SAXException
endTree
public void endTree()
throws SAXException
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Throws:
SAXException
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Throws:
SAXException
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Throws:
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
skippedEntity
public void skippedEntity(String name)
throws SAXException
- Throws:
SAXException
startElement
public void startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
DelegationManager dm)
throws SAXException
- Throws:
SAXException
endElement
public void endElement(String nsURI,
String localName,
String qName,
StAXContentHandler delegate)
throws SAXException
- Throws:
SAXException