This method of the XMLOutputStream class retrieves the current output style for the output stream.
public int getOutputStyle();
Returns either the COMPACT or the PRETTY output style.