Class JDB2Reader.RecordDescription

java.lang.Object
com.pnfsoftware.jeb.core.dao.impl.JDB2Reader.RecordDescription
Enclosing class:
JDB2Reader

public static class JDB2Reader.RecordDescription extends Object
Description of a JDB2 record located in a database file.
  • Constructor Details

    • RecordDescription

      public RecordDescription(int type, int flags, Integer crcValue, long dataOffset, int dataSize)
      Create a record description.
      Parameters:
      type - record type
      flags - record flags
      crcValue - optional CRC value
      dataOffset - absolute offset of the payload in the JDB2 file
      dataSize - 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