RTEditor/src/main/java/com/onegravity/rteditor/utils/io/IOUtils.java
@Deprecated
    public static void write(StringBuffer data, OutputStream output)
            throws IOException {
        write(data, output, (String) null);
    }
@Deprecated
    public static void write(StringBuffer data, OutputStream output)
            throws IOException {
        write(data, output, (String) null);
    }
@ Deprecated public static void write ( StringBuffer data , OutputStream output ) throws IOException { write ( data , output , ( String ) null ) ; }
Writes chars from a <code>StringBuffer</code> to bytes on an
<code>OutputStream</code> using the default character encoding of the
platform.
<p/>
This method uses {@link String#getBytes()}.

@param data   the <code>StringBuffer</code> to write, null ignored
@param output the <code>OutputStream</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, OutputStream)
Writes chars from a <code > StringBuffer< / code > to bytes on an <code > OutputStream< / code > using the default character encoding of the platform . <p / > This method uses { @link String#getBytes () } .