RTEditor/src/main/java/com/onegravity/rteditor/converter/tagsoup/HTMLWriter.java
public void setOutput(Writer writer) {
        if (writer == null) {
            output = new OutputStreamWriter(System.out);
        } else {
            output = writer;
        }
    }
public void setOutput(Writer writer) {
        if (writer == null) {
            output = new OutputStreamWriter(System.out);
        } else {
            output = writer;
        }
    }
public void setOutput ( Writer writer ) { if ( writer == null ) { output = new OutputStreamWriter ( System . out ) ; } else { output = writer ; } }
Set a new output destination for the document.

@param writer The output destination, or null to use standard output.
@return The current output writer.
@see #flush
Set a new output destination for the document .