public class XMLWriter extends Object
Constructor and Description |
---|
XMLWriter(StringBuilder string)
Constructs a helper for writing to given string.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String output)
Adds an embedded XML string with proper indent.
|
void |
addEndTag(String name)
Ends a tag.
|
void |
addTag(String name)
Starts a new tag.
|
void |
addTagWithContent(String name,
String content)
Adds a tag with some content on a single line.
|
public XMLWriter(StringBuilder string)
string
- public void addTag(String name)
name
- public void addEndTag(String name)
name
- public void addTagWithContent(String name, String content)
name
- content
- public void add(String output)
output
- Copyright © 2015–2022 SciJava. All rights reserved.