org.biojava.bio.seq.io.agave
Class StAXContentHandlerBase

java.lang.Object
  extended byorg.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

Constructor Summary
StAXContentHandlerBase()
           
 
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
 

Constructor Detail

StAXContentHandlerBase

public StAXContentHandlerBase()
Method Detail

startTree

public void startTree()
               throws org.xml.sax.SAXException
Specified by:
startTree in interface StAXContentHandler
Throws:
org.xml.sax.SAXException

endTree

public void endTree()
             throws org.xml.sax.SAXException
Specified by:
endTree in interface StAXContentHandler
Throws:
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 characters
start - index of the first significant character for this event.
length - number of characters significant to this event.
Throws:
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
Throws:
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
Throws:
org.xml.sax.SAXException

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
                      throws org.xml.sax.SAXException
Specified by:
endPrefixMapping in interface StAXContentHandler
Throws:
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
Throws:
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
Throws:
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
Throws:
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
Throws:
org.xml.sax.SAXException