public void writeTo(OutputStream out, String charsetName) throws IOException {
        writeTo(out, Charset.forName(charsetName));
    }
Writes the contents of the buffer to another character stream.

@param out the output stream to write to
@throws IOException If an I/O error occurs.
src/main/java/com/alibaba/fastjson/serializer/SerializeWriter.java