Ejemplo n.º 1
0
 /*
  * 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();
 }
Ejemplo n.º 2
0
 /*
 * 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();
 }