Package org.biojava.bio.seq.io.agave
Class StAXContentHandlerBase
java.lang.Object
org.biojava.bio.seq.io.agave.StAXContentHandlerBase
- All Implemented Interfaces:
StAXContentHandler
- Direct Known Subclasses:
StAXFeatureHandler,StAXPropertyHandler
Simple implementation of the
StAXContentHandler
interface, with empty implementations for all the methods.
This class is provided as a base for content handlers where the implementor does not wish to provide all the methods.
- Author:
- copied from Thomas Down
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Signal a span of character data in the XML input.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) void
-
Constructor Details
-
StAXContentHandlerBase
public StAXContentHandlerBase()
-
-
Method Details
-
startTree
- Specified by:
startTreein interfaceStAXContentHandler- Throws:
SAXException
-
endTree
- Specified by:
endTreein interfaceStAXContentHandler- Throws:
SAXException
-
characters
Signal a span of character data in the XML input.- Specified by:
charactersin interfaceStAXContentHandler- Parameters:
ch- an array of charactersstart- index of the first significant character for this event.length- number of characters significant to this event.- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceStAXContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceStAXContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceStAXContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceStAXContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceStAXContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceStAXContentHandler- Throws:
SAXException
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException - Specified by:
startElementin interfaceStAXContentHandler- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException - Specified by:
endElementin interfaceStAXContentHandler- Throws:
SAXException
-