public class XmlOutputStream extends Object
| Constructor and Description |
|---|
XmlOutputStream(OutputStream out,
boolean prettyPrint) |
XmlOutputStream(OutputStream out,
String prettyPrintIndentation) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
endDocument() |
void |
flush() |
String |
getPrefix(String namespace) |
Writer |
getWriter() |
void |
setPrefix(String prefix,
String namespace) |
void |
startDocument() |
void |
writeAttribute(String namespace,
String name,
String value) |
void |
writeComment(String text) |
void |
writeEndTag(String namespace,
String name) |
void |
writeStartTag(String namespace,
String name) |
void |
writeStringElement(String namespace,
String name,
String content) |
void |
writeText(String text) |
public XmlOutputStream(OutputStream out, boolean prettyPrint) throws IOException
IOExceptionpublic XmlOutputStream(OutputStream out, String prettyPrintIndentation) throws IOException
IOExceptionpublic void startDocument()
throws IOException
IOExceptionpublic void endDocument()
throws IOException
IOExceptionpublic void setPrefix(String prefix, String namespace) throws IOException
IOExceptionpublic void writeStartTag(String namespace, String name) throws IOException
IOExceptionpublic void writeEndTag(String namespace, String name) throws IOException
IOExceptionpublic void writeStringElement(String namespace, String name, String content) throws IOException
IOExceptionpublic void writeAttribute(String namespace, String name, String value) throws IOException
IOExceptionpublic void writeText(String text) throws IOException
IOExceptionpublic void writeComment(String text) throws IOException
IOExceptionpublic Writer getWriter()
public void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.