RTEditor/src/main/java/com/onegravity/rteditor/utils/io/IOUtils.java
@Deprecated
    public static void write(StringBuffer data, OutputStream output, String encoding) throws IOException {
        if (data != null) {
            output.write(data.toString().getBytes(Charsets.toCharset(encoding)));
        }
    }
@Deprecated
    public static void write(StringBuffer data, OutputStream output, String encoding) throws IOException {
        if (data != null) {
            output.write(data.toString().getBytes(Charsets.toCharset(encoding)));
        }
    }
@ Deprecated public static void write ( StringBuffer data , OutputStream output , String encoding ) throws IOException { if ( data != null ) { output . write ( data . toString ( ) . getBytes ( Charsets . toCharset ( encoding ) ) ) ; } }
Writes chars from a <code>StringBuffer</code> to bytes on an
<code>OutputStream</code> using the specified character encoding.
<p/>
Character encoding names can be found at
<a href="http://www.iana.org/assignments/character-sets">IANA</a>.
<p/>
This method uses {@link String#getBytes(String)}.

@param data     the <code>StringBuffer</code> to write, null ignored
@param output   the <code>OutputStream</code> to write to
@param encoding the encoding to use, null means platform default
@throws NullPointerException        if output is null
@throws IOException                 if an I/O error occurs
@throws UnsupportedCharsetException thrown instead of {@link UnsupportedEncodingException} in version 2.2 if the encoding is not
supported.
@since 1.1
@deprecated replaced by write(CharSequence, OutputStream, String)
Writes chars from a <code > StringBuffer< / code > to bytes on an <code > OutputStream< / code > using the specified character encoding . <p / > Character encoding names can be found at <a href = http : // www . iana . org / assignments / character - sets > IANA< / a > . <p / > This method uses { @link String#getBytes ( String ) } .