Class JDB2Reader.RecordDescription
java.lang.Object
com.pnfsoftware.jeb.core.dao.impl.JDB2Reader.RecordDescription
- Enclosing class:
JDB2Reader
Description of a JDB2 record located in a database file.
-
Constructor Summary
ConstructorsConstructorDescriptionRecordDescription(int type, int flags, Integer crcValue, long dataOffset, int dataSize) Create a record description. -
Method Summary
-
Constructor Details
-
RecordDescription
Create a record description.- Parameters:
type- record typeflags- record flagscrcValue- optional CRC valuedataOffset- absolute offset of the payload in the JDB2 filedataSize- payload size in bytes
-
-
Method Details
-
getType
public int getType()Get the record type.- Returns:
- the record type
-
getFlags
public int getFlags()Get the record flags.- Returns:
- the record flags
-
getCrcValue
public int getCrcValue()Get the stored CRC value for the record payload.- Returns:
- the CRC value
-
getOffsetToData
public long getOffsetToData()Get the absolute offset of the record payload in the JDB2 file.- Returns:
- the payload offset
-
getSizeOfData
public int getSizeOfData()Get the payload size in bytes.- Returns:
- the payload size
-