Class InvalidRecordSizeException

  • All Implemented Interfaces:
    Serializable

    public class InvalidRecordSizeException
    extends DBaseFileException
    Exception throws when the size of a record specified inside the header does not corresponds to the computed one after reading the header.
    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:52
    Author:
    Stéphane GALLAND, Olivier LAMOTTE
    See Also:
    Serialized Form
    Maven Group Id:
    org.arakhne.afc.advanced
    Maven Artifact Id:
    dbasefile
    • Constructor Detail

      • InvalidRecordSizeException

        public InvalidRecordSizeException​(int desiredSize,
                                          int computedSize)
        Constructor.
        Parameters:
        desiredSize - the desired size.
        computedSize - the computed size.
    • Method Detail

      • getHeaderSize

        @Pure
        public int getHeaderSize()
        Replies the attempted size of the header.
        Returns:
        the attempted size of the header.
      • getComputedSize

        @Pure
        public int getComputedSize()
        Replies the computed size of the header.
        Returns:
        the computed size of the header.