The XMLOutputStream class of the com.ms.xml.util package is an output stream writer that is specifically designed for XML including XML encoding, little endian files, XML namespaces, and white-space handling.
public class XMLOutputStream extends OutputStream { // Fields public static int COMPACT; public DTD dtd; public boolean mixed; public NameSpaceContext nameSpaceContext; public static int PRETTY; public boolean savingDTD; // Constructors public XMLOutputStream(OutputStream out); // Methods public void addIndent(int offset); public void close() throws IOException; public void flush() throws IOException; public int getOutputStyle(); public void setEncoding(String encoding, boolean littleendian, boolean byteOrderMark) throws IOException; public void setOutputStyle(int style); public void write(int c) throws IOException; public void writeChars(String str) throws IOException; public void writeIndent() throws IOException; public void writeNewLine() throws IOException; public void writeQualifiedName(Name n, Atom ns) throws IOException; public void writeQuotedString(String str) throws IOException; }
OutputStream | +--XMLOutputStream