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, setTimestampprotected short pduStatus
protected short padding
public int getMarshalledSize()
getMarshalledSize in class PduSuperclasspublic 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 PduSuperclasspublic void unmarshal(java.io.DataInputStream dis)
unmarshal in class PduSuperclasspublic void marshal(java.nio.ByteBuffer buff)
marshal in class PduSuperclassbuff - The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException - if buff is too smalljava.nio.ReadOnlyBufferException - if buff is read onlyByteBufferpublic void unmarshal(java.nio.ByteBuffer buff)
unmarshal in class PduSuperclassbuff - The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException - if buff is too smallByteBufferpublic byte[] marshal()
Pdupublic boolean equals(java.lang.Object obj)
equals in class PduSuperclasspublic boolean equalsImpl(java.lang.Object obj)
PduSuperclassthis and the supplied objectequalsImpl in class PduSuperclassobj - the object to compare to