public interface XMLWriter
| Modifier and Type | Method and Description | 
|---|---|
void | 
attribute(String qName,
         String value)
Add an un-qualified attribute to an element. 
 | 
void | 
attribute(String nsURI,
         String localName,
         String value)
Add an attribute to an element. 
 | 
void | 
close()
Close this XMLWriter, and it's underlying stream. 
 | 
void | 
closeTag(String name)
Closes an un-qualified element. 
 | 
void | 
closeTag(String nsURI,
        String qName)
Closes an element 
 | 
void | 
declareNamespace(String nsURI,
                String prefixHint)
Hints that a namespace is going to be used in a sub-tree. 
 | 
void | 
openTag(String name)
Open a new unqualified XML tag. 
 | 
void | 
openTag(String nsURI,
       String localName)
Open a new namespace-qualified XML tag. 
 | 
void | 
print(String data)
Prints some textual content in an element. 
 | 
void | 
println(String data)
Prints some textual content, terminated with a newline character. 
 | 
void | 
printRaw(String s)
Send raw data to the stream. 
 | 
void printRaw(String s) throws IOException
s - a string of data to include verbatim in the XML streamIOExceptionvoid openTag(String nsURI, String localName) throws IOException
nsURI - A URI for the namespace to uselocalName - The name of the tagIOExceptionvoid openTag(String name) throws IOException
name - The name of the tag.IOExceptionvoid attribute(String nsURI, String localName, String value) throws IOException
openTag command.nsURI - A URI for the namespace to uselocalName - The name of the attributevalue - The textual value of the attributeIOExceptionvoid attribute(String qName, String value) throws IOException
openTag command.qName - The name of the attribute to setvalue - The textual value of the attributeIOExceptionvoid print(String data) throws IOException
IOExceptionvoid println(String data) throws IOException
IOExceptionvoid closeTag(String nsURI, String qName) throws IOException
nsURI - A URI for the namespace to useqName - The name of the tagIOExceptionvoid closeTag(String name) throws IOException
name - The tag nameIOExceptionvoid declareNamespace(String nsURI, String prefixHint) throws IOException
nsURI - The namespace to declareprefixHint - A suggested prefix-string for this namespace.IOExceptionvoid close() throws IOException
IOExceptionCopyright © 2000–2017 BioJava. All rights reserved.