This method of the XMLOutputStream class writes the appropriate indent, according to the indentation level that is specified by the addIndent method. If the output style is COMPACT, the method performs no operation.
public void writeIndent() throws IOException;
IOException if there was an error writing to the output stream.