Package 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
-
-
Constructor Summary
Constructors Constructor Description FastXMLWriter(PrintWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(String qName, String value)voidcloseTag(String qName)protected voidnumericalEntity(char c)voidopenTag(String qName)voidprint(String data)protected voidprintAttributeValue(String data)protected voidprintChars(String data)voidprintln(String data)voidprintRaw(String data)
-
-
-
Constructor Detail
-
FastXMLWriter
public FastXMLWriter(PrintWriter writer)
-
-
Method Detail
-
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
-
-