org.biojava.bio.program.xml
Class SimpleXMLEmitter

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.biojava.bio.program.xml.SimpleXMLEmitter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class SimpleXMLEmitter
extends org.xml.sax.helpers.DefaultHandler

A simple XML DocumentHandler that processes SAX2 events to create a sensibly formatted XML as it parsed without populating objects with data. Note, need to tidy up parameter names which are poor due to decompiling a .class file from an accidently deleted .java file!

Copyright © 2000 Cambridge Antibody Technology. All Rights Reserved.

Primary author -

Other authors -

Version:
1.0
Author:
Cambridge Antibody Technology (CAT)
See Also:
BaseXMLWriter

Constructor Summary
SimpleXMLEmitter()
           
SimpleXMLEmitter(boolean flag)
           
 
Method Summary
 void characters(char[] ach, int i, int j)
           
 void endElement(java.lang.String string1, java.lang.String string2, java.lang.String string3)
           
 void startElement(java.lang.String string1, java.lang.String string2, java.lang.String string3, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleXMLEmitter

public SimpleXMLEmitter()

SimpleXMLEmitter

public SimpleXMLEmitter(boolean flag)
Method Detail

characters

public void characters(char[] ach,
                       int i,
                       int j)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String string1,
                       java.lang.String string2,
                       java.lang.String string3)
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String string1,
                         java.lang.String string2,
                         java.lang.String string3,
                         org.xml.sax.Attributes attributes)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler