Package 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
-
-
Constructor Summary
Constructors Constructor Description FastXMLWriter(java.io.PrintWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attribute(java.lang.String qName, java.lang.String value)
void
closeTag(java.lang.String qName)
protected void
numericalEntity(char c)
void
openTag(java.lang.String qName)
void
print(java.lang.String data)
protected void
printAttributeValue(java.lang.String data)
protected void
printChars(java.lang.String data)
void
println(java.lang.String data)
void
printRaw(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
-
-