public class Pdu extends PduSuperclass implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected short |
padding
zero-filled array of padding
|
protected short |
pduStatus
PDU Status Record.
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
Pdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring
transient and static fields, for
this and the supplied object |
int |
getMarshalledSize() |
short |
getPadding() |
short |
getPduStatus() |
byte[] |
marshal()
A convenience method for marshalling to a byte array.
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setPadding(short pPadding) |
void |
setPduStatus(short pPduStatus) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected short pduStatus
protected short padding
public int getMarshalledSize()
getMarshalledSize
in class PduSuperclass
public void setPduStatus(short pPduStatus)
public short getPduStatus()
public void setPadding(short pPadding)
public short getPadding()
public void marshal(java.io.DataOutputStream dos)
marshal
in class PduSuperclass
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class PduSuperclass
public void marshal(java.nio.ByteBuffer buff)
marshal
in class PduSuperclass
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class PduSuperclass
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public byte[] marshal()
Pdu
public boolean equals(java.lang.Object obj)
equals
in class PduSuperclass
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied objectequalsImpl
in class PduSuperclass
obj
- the object to compare to