Package org.ka2ddo.util
Class Dbf
java.lang.Object
org.ka2ddo.util.Dbf
This class provides a simple read-only means of interpreting a DBF database file.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This class describes the structure of one field (column) in the DBF table. -
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
fields
Ordered array of Field definitions for the DBF file. -
records
Ordered list of records read from the DBF file. Each record is an array of Objects in the order defined by thefields
array.
-
-
Constructor Details
-
Dbf
Read a DBF file and get all its data into memory.- Parameters:
dbfFile
- File identifying the DBF file in the filesystem- Throws:
IOException
- if DBF file could not be read for any reason
-
-
Method Details
-
main
Unit test method for dumping the contents of a DBF database. Arguments are the pathname of the DBF file. Before the file name, the option "-v" can be specified to say that every single record should be dumped, rather than just reporting the DB schema.- Parameters:
args
- String array of command line parameters- Throws:
IOException
- if DBF file could not be read for any reason
-