The XMLOutputStream class contains the following constructor:
Constructs the XMLOutputStream object as a standard UTF-8 output stream. A subsequent call to the setEncoding method will specify the correct character encoding that is required. Create an XMLOutputStream by using the createOutputStream method of the XMLInputStream class.
public XMLOutputStream(OutputStream out);
out | An output stream to use to create the XMLOutputStream. |