This method of the XMLStreamReader interface defines the character encoding of the input stream.
public void setEncoding(int encoding, int offset);