RTEditor/src/main/java/com/onegravity/rteditor/utils/io/IOUtils.java
@Deprecated
    public static void write(StringBuffer data, Writer output)
            throws IOException {
        if (data != null) {
            output.write(data.toString());
        }
    }
@Deprecated
    public static void write(StringBuffer data, Writer output)
            throws IOException {
        if (data != null) {
            output.write(data.toString());
        }
    }
Writes chars from a <code>StringBuffer</code> to a <code>Writer</code>.

@param data   the <code>StringBuffer</code> to write, null ignored
@param output the <code>Writer</code> to write to
@throws NullPointerException if output is null
@throws IOException          if an I/O error occurs
@since 1.1
@deprecated replaced by write(CharSequence, Writer)