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.
public void write(int c) throws IOException;
c | The character to write to the output stream. |
IOException if there was an error writing to the stream.