Package org.biojava.utils.stax
Interface StAXContentHandler
-
- All Known Subinterfaces:
XMLAnnotationTypeHandler.CollectionConstraintHandler,XMLAnnotationTypeHandler.PropertyConstraintHandler,XMLFilterHandler.FilterHandler
- All Known Implementing Classes:
AlignmentStAXHandler,BlastXMLParser,BooleanElementHandlerBase,ByteElementHandlerBase,CharElementHandlerBase,DoubleElementHandlerBase,FeatureHandler,FloatElementHandlerBase,GAMEAnnotationHandler,GAMEAnnotationHandler,GAMEAspectHandler,GAMEAspectPropHandler,GAMEDbxrefHandler,GAMEDbxrefPropHandler,GAMEDescriptionPropHandler,GAMEFeatureSetHandler,GAMEFeatureSetHandler,GAMEFeatureSetPropHandler,GAMEFeatureSpanHandler,GAMEFeatureSpanHandler,GAMEFeatureSpanHandler.SeqRelHandler,GAMEGeneHandler,GAMEGenePropHandler,GAMEHandler,GAMEHandler,GAMEMapPosPropHandler,GAMENamePropHandler,GAMEPropertyHandler,GAMEResiduesPropHandler,GAMESeqHandler,GAMESeqPropHandler,GAMESeqRelHandler,GAMESeqRelPropHandler,GAMESpanHandler,GAMESpanPropHandler,GAMETypePropHandler,HeaderStAXHandler,HitStAXHandler,HSPStAXHandler,HSPSummaryStAXHandler,IntElementHandlerBase,LocationHandlerBase,LongElementHandlerBase,PropDetailHandler,SeqSimilarityStAXAdapter,SeqSimilarityStAXHandler,SequenceContentHandlerBase,StAXContentHandlerBase,StAXFeatureHandler,StAXFeatureHandler,StAXPropertyHandler,StrandedFeatureHandler,StringElementHandlerBase,XFFFeatureSetHandler,XMLAnnotationTypeHandler
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendElement(String nsURI, String localName, String qName, StAXContentHandler delegate)voidendPrefixMapping(String prefix)voidendTree()voidignorableWhitespace(char[] ch, int start, int length)voidprocessingInstruction(String target, String data)voidsetDocumentLocator(Locator locator)voidskippedEntity(String name)voidstartElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm)voidstartPrefixMapping(String prefix, String uri)voidstartTree()
-
-
-
Method Detail
-
startTree
void startTree() throws SAXException
- Throws:
SAXException
-
endTree
void endTree() throws SAXException
- Throws:
SAXException
-
characters
void characters(char[] ch, int start, int length) throws SAXException
- Throws:
SAXException
-
ignorableWhitespace
void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
- Throws:
SAXException
-
startPrefixMapping
void startPrefixMapping(String prefix, String uri) throws SAXException
- Throws:
SAXException
-
endPrefixMapping
void endPrefixMapping(String prefix) throws SAXException
- Throws:
SAXException
-
processingInstruction
void processingInstruction(String target, String data) throws SAXException
- Throws:
SAXException
-
setDocumentLocator
void setDocumentLocator(Locator locator)
-
skippedEntity
void skippedEntity(String name) throws SAXException
- Throws:
SAXException
-
startElement
void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
- Throws:
SAXException
-
endElement
void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException
- Throws:
SAXException
-
-