org.geotools.data.shapefile.dbf |
|
Java Source File Name | Type | Comment |
DbaseFileException.java | Class | Thrown when an error relating to the shapefile
occurs. |
DbaseFileHeader.java | Class | Class to represent the header of a Dbase III file. |
DbaseFileReader.java | Class | A DbaseFileReader is used to read a dbase III format file. |
DbaseFileWriter.java | Class | A DbaseFileReader is used to read a dbase III format file. |
IndexedDbaseFileReader.java | Class | A DbaseFileReader is used to read a dbase III format file.
The general use of this class is:
FileChannel in = new FileInputStream("thefile.dbf").getChannel();
DbaseFileReader r = new DbaseFileReader( in )
Object[] fields = new Object[r.getHeader().getNumFields()];
while (r.hasNext()) {
r.readEntry(fields);
// do stuff
}
r.close();
For consumers who wish to be a bit more selective with their reading of rows,
the Row object has been added. |