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 streamIOException
void openTag(String nsURI, String localName) throws IOException
nsURI
- A URI for the namespace to uselocalName
- The name of the tagIOException
void openTag(String name) throws IOException
name
- The name of the tag.IOException
void 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 attributeIOException
void attribute(String qName, String value) throws IOException
openTag
command.qName
- The name of the attribute to setvalue
- The textual value of the attributeIOException
void print(String data) throws IOException
IOException
void println(String data) throws IOException
IOException
void closeTag(String nsURI, String qName) throws IOException
nsURI
- A URI for the namespace to useqName
- The name of the tagIOException
void closeTag(String name) throws IOException
name
- The tag nameIOException
void declareNamespace(String nsURI, String prefixHint) throws IOException
nsURI
- The namespace to declareprefixHint
- A suggested prefix-string for this namespace.IOException
void close() throws IOException
IOException
Copyright © 2000–2019 BioJava. All rights reserved.