/* * Create a binary from a stream containinf a binary encoded in * Erlang external format. * * @param buf the stream containing the encoded binary. * * @exception DecodeException if the buffer does not * contain a valid external representation of an Erlang binary. **/ public Binary(OtpInputStream buf) { this.bin = buf.read_binary(); }