RTEditor/src/main/java/com/onegravity/rteditor/utils/io/IOUtils.java
public static void write(CharSequence data, OutputStream output)
            throws IOException {
        write(data, output, Charset.defaultCharset());
    }
public static void write(CharSequence data, OutputStream output)
            throws IOException {
        write(data, output, Charset.defaultCharset());
    }
Writes chars from a <code>CharSequence</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>CharSequence</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 2.0