예제 #1
0
  /**
   * Unpacks a Pdu from the underlying data.
   *
   * @throws java.nio.BufferUnderflowException if buff is too small
   * @see java.nio.ByteBuffer
   * @param buff The ByteBuffer at the position to begin reading
   * @since ??
   */
  public void unmarshal(java.nio.ByteBuffer buff) {
    super.unmarshal(buff);

    orginatingEntityID.unmarshal(buff);
    receivingEntityID.unmarshal(buff);
    relationship.unmarshal(buff);
    partLocation.unmarshal(buff);
    namedLocationID.unmarshal(buff);
    partEntityType.unmarshal(buff);
  } // end of unmarshal method
예제 #2
0
  public void unmarshal(DataInputStream dis) {
    super.unmarshal(dis);

    try {
      orginatingEntityID.unmarshal(dis);
      receivingEntityID.unmarshal(dis);
      relationship.unmarshal(dis);
      partLocation.unmarshal(dis);
      namedLocationID.unmarshal(dis);
      partEntityType.unmarshal(dis);
    } // end try
    catch (Exception e) {
      System.out.println(e);
    }
  } // end of unmarshal method