org.biojava.utils.xml
Class FastXMLWriter
java.lang.Object
org.biojava.utils.xml.FastXMLWriter
public class FastXMLWriter
- extends Object
Simple implementation of XMLWriter, optimized for speed. The output is
not necessarily human-readable, but is fine for automated parsing.
- Author:
- Thomas Down
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastXMLWriter
public FastXMLWriter(PrintWriter writer)
openTag
public void openTag(String qName)
throws IOException
- Throws:
IOException
attribute
public void attribute(String qName,
String value)
throws IOException
- Throws:
IOException
closeTag
public void closeTag(String qName)
throws IOException
- Throws:
IOException
println
public void println(String data)
throws IOException
- Throws:
IOException
print
public void print(String data)
throws IOException
- Throws:
IOException
printRaw
public void printRaw(String data)
throws IOException
- Throws:
IOException
printChars
protected void printChars(String data)
throws IOException
- Throws:
IOException
printAttributeValue
protected void printAttributeValue(String data)
throws IOException
- Throws:
IOException
numericalEntity
protected void numericalEntity(char c)
throws IOException
- Throws:
IOException