Package org.biojava.utils.stax
Class StAXContentHandlerBase
- java.lang.Object
-
- org.biojava.utils.stax.StAXContentHandlerBase
-
- All Implemented Interfaces:
StAXContentHandler
- Direct Known Subclasses:
BlastXMLParser
,BooleanElementHandlerBase
,ByteElementHandlerBase
,CharElementHandlerBase
,DoubleElementHandlerBase
,FeatureHandler
,FloatElementHandlerBase
,IntElementHandlerBase
,LocationHandlerBase
,LongElementHandlerBase
,SeqSimilarityStAXAdapter
,SeqSimilarityStAXHandler
,SequenceContentHandlerBase
,StAXFeatureHandler
,StAXFeatureHandler
,StAXPropertyHandler
,StringElementHandlerBase
,XFFFeatureSetHandler
,XMLAnnotationTypeHandler
public class StAXContentHandlerBase extends Object implements StAXContentHandler
Simple implementation of theStAXContentHandler
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:
- Thomas Down
-
-
Constructor Summary
Constructors Constructor Description StAXContentHandlerBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
Signal a span of character data in the XML input.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()
-
-
-
Constructor Detail
-
StAXContentHandlerBase
public StAXContentHandlerBase()
-
-
Method Detail
-
startTree
public void startTree() throws SAXException
- Specified by:
startTree
in interfaceStAXContentHandler
- Throws:
SAXException
-
endTree
public void endTree() throws SAXException
- Specified by:
endTree
in interfaceStAXContentHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
Signal a span of character data in the XML input.- Specified by:
characters
in 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
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceStAXContentHandler
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMapping
in interfaceStAXContentHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceStAXContentHandler
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstruction
in interfaceStAXContentHandler
- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interfaceStAXContentHandler
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntity
in interfaceStAXContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
- Specified by:
startElement
in interfaceStAXContentHandler
- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException
- Specified by:
endElement
in interfaceStAXContentHandler
- Throws:
SAXException
-
-