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
- public class StAXContentHandlerBase
- extends java.lang.Object
- implements StAXContentHandler
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
|
Method Summary |
void |
characters(char[] ch,
int start,
int length)
Signal a span of character data in the XML input. |
void |
endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler delegate)
|
void |
endPrefixMapping(java.lang.String prefix)
|
void |
endTree()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String name)
|
void |
startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
void |
startTree()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StAXContentHandlerBase
public StAXContentHandlerBase()
startTree
public void startTree()
throws org.xml.sax.SAXException
- Specified by:
startTree in interface StAXContentHandler
org.xml.sax.SAXException
endTree
public void endTree()
throws org.xml.sax.SAXException
- Specified by:
endTree in interface StAXContentHandler
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Signal a span of character data in the XML input.
- Specified by:
characters in interface StAXContentHandler
- Parameters:
ch - an array of charactersstart - index of the first significant character for this event.length - number of characters significant to this event.
org.xml.sax.SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
ignorableWhitespace in interface StAXContentHandler
org.xml.sax.SAXException
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
- Specified by:
startPrefixMapping in interface StAXContentHandler
org.xml.sax.SAXException
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
- Specified by:
endPrefixMapping in interface StAXContentHandler
org.xml.sax.SAXException
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
- Specified by:
processingInstruction in interface StAXContentHandler
org.xml.sax.SAXException
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator in interface StAXContentHandler
skippedEntity
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
skippedEntity in interface StAXContentHandler
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm)
throws org.xml.sax.SAXException
- Specified by:
startElement in interface StAXContentHandler
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler delegate)
throws org.xml.sax.SAXException
- Specified by:
endElement in interface StAXContentHandler
org.xml.sax.SAXException