public class XMLTree extends Object
| Constructor and Description |
|---|
XMLTree()
Creates a new, empty tree.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding()
Returns the encoding.
|
XMLNode |
getRoot()
Returns the root node.
|
String |
getVersion() |
void |
setEncoding(String aEncoding)
Sets the encoding.
|
void |
setRoot(XMLNode aRoot) |
void |
setVersion(String aVersion) |
void |
write(OutputStreamWriter aWriter)
Writes the contents of the xml tree as xml to the given output writer.
|
public XMLNode getRoot()
public void setRoot(XMLNode aRoot)
public String getVersion()
public void setVersion(String aVersion)
public String getEncoding()
public void setEncoding(String aEncoding)
aEncoding - the encoding value.public void write(OutputStreamWriter aWriter) throws IOException
aWriter - the writer to write the output to.IOException - rethrown if thrown by the writer.Copyright © 2010-2014 anotheria.net. All Rights Reserved.