Type Reason Java.IO.IOException Java.Lang.IllegalArgumentException Java.Lang.IllegalStateException
Finish writing. All unclosed start tags will be closed and output will be flushed. After calling this method no more output can be serialized until next call to setOutput()