org.biojava.utils.xml
Class FastXMLWriter
java.lang.Object
org.biojava.utils.xml.FastXMLWriter
public class FastXMLWriter
- extends java.lang.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(java.io.PrintWriter writer)
openTag
public void openTag(java.lang.String qName)
throws java.io.IOException
- Throws:
java.io.IOException
attribute
public void attribute(java.lang.String qName,
java.lang.String value)
throws java.io.IOException
- Throws:
java.io.IOException
closeTag
public void closeTag(java.lang.String qName)
throws java.io.IOException
- Throws:
java.io.IOException
println
public void println(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
print
public void print(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
printRaw
public void printRaw(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
printChars
protected void printChars(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
printAttributeValue
protected void printAttributeValue(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
numericalEntity
protected void numericalEntity(char c)
throws java.io.IOException
- Throws:
java.io.IOException