Microsoft SDK for Java

XMLOutputStream Class Methods

The XMLOutputStream class contains the following methods:

addIndent sets the relative indentation level (for example, addIndent(+1) or addIndent(-1)).
close closes the XMLOutputStream and frees any system resources that are associated with the stream.
flush flushes the XMLOutputStream.
getOutputStyle retrieves the current output style for the output stream.
setEncoding defines the character encoding of the output stream.
setOutputStyle sets the output style for the output stream.
write writes a character to the output stream according to the current write state.
writeChars writes the given string to the output stream.
writeIndent writes the appropriate indent according to the indentation level that is specified by the addIndent method.
writeNewLine writes a new line.
writeQualifiedName writes out the fully qualified name using the appropriate short name syntax.
writeQuotedString writes out the string enclosed in quotation marks.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.