public abstract class IntElementHandlerBase extends StAXContentHandlerBase
This class collects the string data, and when it is complete, passes it to the (abstract) setIntValue method. Typical use of this class is as a base for a small (often anonymous) class which takes the int value and stores it in some variable.
| Constructor and Description | 
|---|
| IntElementHandlerBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | characters(char[] ch,
          int start,
          int end)Signal a span of character data in the XML input. | 
| void | endElement(String nsURI,
          String localName,
          String qName,
          StAXContentHandler handler) | 
| protected abstract void | setIntValue(int val)Override this method to do something useful with the
 int we collect. | 
| void | startElement(String nsURI,
            String localName,
            String qName,
            Attributes attrs,
            DelegationManager dm) | 
endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTreepublic IntElementHandlerBase()
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
startElement in interface StAXContentHandlerstartElement in class StAXContentHandlerBaseSAXExceptionpublic void endElement(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException
endElement in interface StAXContentHandlerendElement in class StAXContentHandlerBaseSAXExceptionpublic void characters(char[] ch, int start, int end) throws SAXException
StAXContentHandlerBasecharacters in interface StAXContentHandlercharacters in class StAXContentHandlerBasech - an array of charactersstart - index of the first significant character for this event.end - number of characters significant to this event.SAXExceptionprotected abstract void setIntValue(int val) throws SAXException
This method will be invoked by endElement with the fully parsed int.
val - the fully parsed intSAXException - if for any reason the int is not palatableCopyright © 2020 BioJava. All rights reserved.