コード例 #1
0
ファイル: PortHelper.java プロジェクト: WaffleSouffle/otp
  /**
   * Unmarshal method for the Port class, decodes a Port object from the stream.
   *
   * @return Port, read from the input stream
   */
  public static Port unmarshal(com.ericsson.otp.erlang.OtpInputStream _in)
      throws java.lang.Exception {

    // Double job is done here, there should be
    // a function returning a Port instead of an
    // OtpErlangPort
    com.ericsson.otp.erlang.OtpErlangPort oep = _in.read_port();

    return new Port(oep.node(), oep.id(), oep.creation());
  }