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 TypeMethodDescriptionvoid
endElement
(String nsURI, String localName, String qName, StAXContentHandler handler) protected abstract void
Override this method to do something useful with the location we collect.void
startElement
(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:
startElement
in interfaceStAXContentHandler
- Overrides:
startElement
in classStAXContentHandlerBase
- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException - Specified by:
endElement
in interfaceStAXContentHandler
- Overrides:
endElement
in 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
-