Microsoft SDK for Java

write

This method of the XMLOutputStream class writes a character to the output stream according to the current write state. To avoid an extra conditional in every UCS-2 write, an extra state is used for a UCS-2 write operation that requires a ByteOrderMark. The ByteOrderMark is written only once at the beginning of the file.

Syntax

public void write(int c) throws IOException;

Parameters

c The character to write to the output stream.

Exceptions

IOException if there was an error writing to the stream.

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