Package org.biojava.utils.xml
Class FastXMLWriter
- java.lang.Object
-
- org.biojava.utils.xml.FastXMLWriter
-
public class FastXMLWriter extends java.lang.ObjectSimple implementation of XMLWriter, optimized for speed. The output is not necessarily human-readable, but is fine for automated parsing.- Author:
- Thomas Down
-
-
Constructor Summary
Constructors Constructor Description FastXMLWriter(java.io.PrintWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(java.lang.String qName, java.lang.String value)voidcloseTag(java.lang.String qName)protected voidnumericalEntity(char c)voidopenTag(java.lang.String qName)voidprint(java.lang.String data)protected voidprintAttributeValue(java.lang.String data)protected voidprintChars(java.lang.String data)voidprintln(java.lang.String data)voidprintRaw(java.lang.String data)
-
-
-
Method Detail
-
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
-
-