public class XmlWriter extends Object
Constructor and Description |
---|
XmlWriter(OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeCData(int indentation,
String text,
boolean writeNewLine) |
void |
writeComment(int indentation,
String comment,
boolean writeNewLine) |
void |
writeEndTag(int indentation,
String elementName,
boolean writeNewLine) |
void |
writeIndentation(int indentation) |
void |
writeNewLine() |
void |
writeStartTag(int indentation,
XmlWriterStartTag startTag,
boolean endTag,
boolean writeNewLine) |
void |
writeText(int indentation,
String text,
boolean writeNewLine) |
public XmlWriter(OutputStream outputStream) throws XmlWriterException
outputStream
- The stream to which the XML data will be sent.XmlWriterException
public void close() throws XmlWriterException
XmlWriterException
public void writeStartTag(int indentation, XmlWriterStartTag startTag, boolean endTag, boolean writeNewLine) throws XmlWriterException
XmlWriterException
public void writeEndTag(int indentation, String elementName, boolean writeNewLine) throws XmlWriterException
XmlWriterException
public final void writeIndentation(int indentation) throws XmlWriterException
XmlWriterException
public final void writeNewLine() throws XmlWriterException
XmlWriterException
public void writeText(int indentation, String text, boolean writeNewLine) throws XmlWriterException
XmlWriterException
public void writeCData(int indentation, String text, boolean writeNewLine) throws XmlWriterException
XmlWriterException
public void writeComment(int indentation, String comment, boolean writeNewLine) throws XmlWriterException
XmlWriterException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.