public abstract class PduBase extends Pdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
padding
zero-filled array of padding
|
protected PduStatus |
pduStatus
PDU Status Record.
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
PduBase()
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()
Returns the size of this serialized object in bytes
|
byte |
getPadding()
Getter for
padding |
PduStatus |
getPduStatus()
Getter for
pduStatus |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
PduBase |
setPadding(byte pPadding)
Setter for
padding |
PduBase |
setPduStatus(PduStatus pPduStatus)
Setter for
pduStatus |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected PduStatus pduStatus
protected byte padding
public int getMarshalledSize()
getMarshalledSize
in class Pdu
public byte getPadding()
padding
public void marshal(java.io.DataOutputStream dos)
public int unmarshal(java.io.DataInputStream dis)
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class Pdu
obj
- the object to compare to