net.sourceforge.taverna.biojava
Class StringXMLEmitter

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.sourceforge.taverna.biojava.StringXMLEmitter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

This class Last edited by $Author: sowen70 $

Version:
$Revision: 1.3 $
Author:
Mark

Constructor Summary
StringXMLEmitter()
           
StringXMLEmitter(boolean flag)
           
StringXMLEmitter(java.io.StringWriter writer)
           
 
Method Summary
 void characters(char[] ach, int i, int j)
           
 void endElement(java.lang.String string1, java.lang.String string2, java.lang.String string3)
           
 java.io.StringWriter getWriter()
           
 void setWriter(java.io.StringWriter writer)
           
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringXMLEmitter

public StringXMLEmitter(java.io.StringWriter writer)

StringXMLEmitter

public StringXMLEmitter()

StringXMLEmitter

public StringXMLEmitter(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

getWriter

public java.io.StringWriter getWriter()
Returns:
Returns the writer.

setWriter

public void setWriter(java.io.StringWriter writer)
Parameters:
writer - The writer to set.