public class RecordSpecificationElement
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
padding |
protected short |
recordCount
the number of records included in the record set
|
protected VariableRecordTypes |
recordID
the data structure used to convey the parameter values of the record for each record.
|
protected short |
recordLength
the length, in bits, of the record.
|
protected int |
recordSetSerialNumber
the serial number of the first record in the block of records
|
protected byte[] |
recordValues
the concatenated records of the format specified by the Record ID field.
|
Constructor and Description |
---|
RecordSpecificationElement()
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
|
int |
getPadding()
Getter for
padding |
short |
getRecordCount()
Getter for
recordCount |
VariableRecordTypes |
getRecordID()
Getter for
recordID |
short |
getRecordLength()
Getter for
recordLength |
int |
getRecordSetSerialNumber()
Getter for
recordSetSerialNumber |
byte[] |
getRecordValues()
Getter for
recordValues |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
RecordSpecificationElement |
setPadding(int pPadding)
Setter for
padding |
RecordSpecificationElement |
setRecordCount(short pRecordCount)
Setter for
recordCount |
RecordSpecificationElement |
setRecordID(VariableRecordTypes pRecordID)
Setter for
recordID |
RecordSpecificationElement |
setRecordLength(short pRecordLength)
Setter for
recordLength |
RecordSpecificationElement |
setRecordSetSerialNumber(int pRecordSetSerialNumber)
Setter for
recordSetSerialNumber |
RecordSpecificationElement |
setRecordValues(byte[] pRecordValues)
Setter for
recordValues |
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.
|
protected VariableRecordTypes recordID
protected int recordSetSerialNumber
protected int padding
protected short recordLength
protected short recordCount
protected byte[] recordValues
public int getMarshalledSize()
public RecordSpecificationElement setRecordID(VariableRecordTypes pRecordID)
recordID
public VariableRecordTypes getRecordID()
recordID
public RecordSpecificationElement setRecordSetSerialNumber(int pRecordSetSerialNumber)
recordSetSerialNumber
public int getRecordSetSerialNumber()
recordSetSerialNumber
public RecordSpecificationElement setPadding(int pPadding)
padding
public int getPadding()
padding
public RecordSpecificationElement setRecordLength(short pRecordLength)
recordLength
public short getRecordLength()
recordLength
public RecordSpecificationElement setRecordCount(short pRecordCount)
recordCount
public short getRecordCount()
recordCount
public RecordSpecificationElement setRecordValues(byte[] pRecordValues)
recordValues
public byte[] getRecordValues()
recordValues
public void marshal(java.io.DataOutputStream dos)
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsImpl(java.lang.Object obj)
this
and the supplied objectobj
- the object to compare to