- java.lang.Object
-
- org.arakhne.afc.io.dbase.DBaseFileRecord
-
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 Summary
Constructors Constructor Description DBaseFileRecord(int index, long recordOffset)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(Object fieldvalue)
Add a field value to this record.Object
getFieldValue(int column)
Replies the value of the specified column.int
getRecordIndex()
Replies the index of the record inside the dBase file when it was red.long
getRecordOffset()
Replies the offset of the first byte of the record inside the dBase file.Iterator<Object>
iterator()
int
size()
Replies the count of columns.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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.
-
-