/* * Create an Erlang port from a stream containing a port encoded in * Erlang external format. * * @param buf the stream containing the encoded port. * * @exception DecodeException if the buffer does not * contain a valid external representation of an Erlang port. **/ public Port(OtpInputStream buf) { Port p = buf.read_port(); this._node = p.node(); this._id = p.id(); this._creation = p.creation(); }
/* * Create an Erlang port from a stream containing a port encoded in * Erlang external format. * * @param buf the stream containing the encoded port. * * @exception DecodeException if the buffer does not * contain a valid external representation of an Erlang port. **/ public Port(OtpInputStream buf) { Port p = buf.read_port(); this._node = p.node(); this._id = p.id(); this._creation = p.creation(); }