Package org.biojava.bio.program.xff
Class LocationHandlerBase
java.lang.Object
org.biojava.utils.stax.StAXContentHandlerBase
org.biojava.bio.program.xff.LocationHandlerBase
- All Implemented Interfaces:
StAXContentHandler
Handler to the XFF location type. To use this, write a simple
subclass which takes the location and stores it somewhere sensible.
- Since:
- 1.2
- Author:
- Thomas Down
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String nsURI, String localName, String qName, StAXContentHandler handler) protected abstract voidOverride this method to do something useful with the location we collect.voidstartElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
Constructor Details
-
LocationHandlerBase
public LocationHandlerBase()
-
-
Method Details
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException - Specified by:
startElementin interfaceStAXContentHandler- Overrides:
startElementin classStAXContentHandlerBase- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException - Specified by:
endElementin interfaceStAXContentHandler- Overrides:
endElementin classStAXContentHandlerBase- Throws:
SAXException
-
setLocationValue
Override this method to do something useful with the location we collect. Maybe we should do this by delegation rather than extension.- Throws:
SAXException
-