Package org.biojava.bio.seq.io.game
Class SequenceContentHandlerBase
- java.lang.Object
-
- org.biojava.utils.stax.StAXContentHandlerBase
-
- org.biojava.bio.seq.io.game.SequenceContentHandlerBase
-
- All Implemented Interfaces:
StAXContentHandler
- Direct Known Subclasses:
GAMEResiduesPropHandler
public class SequenceContentHandlerBase extends StAXContentHandlerBase
StAX handler for elements containing sequence- Since:
- 1.8
- Author:
- David Huen
-
-
Constructor Summary
Constructors Constructor Description SequenceContentHandlerBase()
-
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 handler)
void
setStreamParser(StreamParser parser)
assign a StreamParser object to instance.void
startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm)
-
Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
-
-
-
Constructor Detail
-
SequenceContentHandlerBase
public SequenceContentHandlerBase()
-
-
Method Detail
-
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
-
setStreamParser
public void setStreamParser(StreamParser parser)
assign a StreamParser object to instance.
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
Description copied from class:StAXContentHandlerBase
Signal a span of character data in the XML input.- Specified by:
characters
in interfaceStAXContentHandler
- Overrides:
characters
in classStAXContentHandlerBase
- 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
-
-