
public class XMLOutput extends Object
| Constructor and Description |
|---|
XMLOutput(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
XMLOutput |
attribute(String name,
Object value) |
XMLOutput |
attributeOrNull(String name,
Object value) |
OutputStream |
bytes() |
Writer |
characters() |
void |
done() |
XMLOutput |
element(String name) |
XMLOutput |
pop() |
XMLOutput |
push() |
void |
setIndentation(String indentation) |
void |
setNewLine(String newLine) |
public XMLOutput(OutputStream out) throws TransformerConfigurationException, SAXException
public void setNewLine(String newLine)
public void setIndentation(String indentation)
public XMLOutput element(String name) throws SAXException
SAXExceptionpublic XMLOutput attribute(String name, Object value) throws SAXException
SAXExceptionpublic XMLOutput attributeOrNull(String name, Object value) throws SAXException
SAXExceptionpublic Writer characters() throws SAXException
SAXExceptionpublic OutputStream bytes() throws SAXException
SAXExceptionpublic XMLOutput push() throws SAXException
SAXExceptionpublic XMLOutput pop() throws SAXException
SAXExceptionpublic void done()
throws SAXException
SAXExceptionCopyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.