Package org.biojava.bio.program.xml
Class SimpleXMLEmitter
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.biojava.bio.program.xml.SimpleXMLEmitter
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class SimpleXMLEmitter extends 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.
Primary author -
- Simon Brocklehurst (CAT)
- Tim Dilks (CAT)
- Colin Hardman (CAT)
- Stuart Johnston (CAT)
- Version:
- 1.0
- Author:
- Cambridge Antibody Technology (CAT)
- See Also:
BaseXMLWriter
-
-
Constructor Summary
Constructors Constructor Description SimpleXMLEmitter()
SimpleXMLEmitter(boolean flag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ach, int i, int j)
void
endElement(String string1, String string2, String string3)
void
startElement(String string1, String string2, String string3, 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
-
-
-
-
Constructor Detail
-
SimpleXMLEmitter
public SimpleXMLEmitter()
-
SimpleXMLEmitter
public SimpleXMLEmitter(boolean flag)
-
-
Method Detail
-
characters
public void characters(char[] ach, int i, int j) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String string1, String string2, String string3)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
startElement
public void startElement(String string1, String string2, String string3, Attributes attributes)
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
-