/** * Convert this string to the equivalent Erlang external representation. * * @param buf * an output stream to which the encoded string should be * written. */ public override void encode(OtpOutputStream buf) { buf.write_string(str); }