Class DBaseFileRecord

  • All Implemented Interfaces:
    Iterable<Object>

    public class DBaseFileRecord
    extends Object
    implements Iterable<Object>
    This class permits to store a record of a DBF file.

    No warranty for the files that are not generated by an ESRI software.

    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:52
    Author:
    Stéphane GALLAND, Olivier LAMOTTE
    Maven Group Id:
    org.arakhne.afc.advanced
    Maven Artifact Id:
    dbasefile
    • Constructor Detail

      • DBaseFileRecord

        DBaseFileRecord​(int index,
                        long recordOffset)
        Constructor.
        Parameters:
        index - is the index of this record
        recordOffset - is the offset of the first byte of this record inside the dBase file.
    • Method Detail

      • getRecordIndex

        @Pure
        public int getRecordIndex()
        Replies the index of the record inside the dBase file when it was red.
        Returns:
        a value between 0 and the count of record (exclusive)
      • getRecordOffset

        @Pure
        public long getRecordOffset()
        Replies the offset of the first byte of the record inside the dBase file.
        Returns:
        the offset of the first byte of the record inside the dBase file.
      • add

        void add​(Object fieldvalue)
        Add a field value to this record.
        Parameters:
        fieldvalue - the value.
      • size

        @Pure
        public int size()
        Replies the count of columns.
        Returns:
        the count of columns.
      • getFieldValue

        @Pure
        public Object getFieldValue​(int column)
        Replies the value of the specified column.
        Parameters:
        column - is the index of the column.
        Returns:
        the value of the specified column.