|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanl.repast.gis.data.dbf.DBFReader
public class DBFReader
Title: JDBF
Description: Used to read database (DBF) files.
Create a DBFReader object passing a file name to be opened, and use hasNextRecord and nextRecord
functions to iterate through the records of the file.
The getFieldCount and getField methods allow you to find out what are the fields of the database file.
Copyright : Copyright (c) 2004
Société : FUCaM-GTM
| Constructor Summary | |
|---|---|
DBFReader(java.io.InputStream inputstream)
Opens a stream, containing DBF for reading. |
|
DBFReader(java.lang.String s)
Opens a DBF file for reading. |
|
| Method Summary | |
|---|---|
JDBField |
getField(int i)
Returns a field at a specified position. |
int |
getFieldCount()
Returns the field count of the database file. |
boolean |
hasNextRecord()
Checks to see if there are more records in the file. |
java.lang.Object[] |
nextRecord()
Returns an array of objects, representing one record in the database file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBFReader(java.lang.String s)
throws JDBFException
s - String
JDBFException
public DBFReader(java.io.InputStream inputstream)
throws JDBFException
inputstream - InputStream
JDBFException| Method Detail |
|---|
public int getFieldCount()
public JDBField getField(int i)
i - int
public boolean hasNextRecord()
public java.lang.Object[] nextRecord()
throws JDBFException
JDBFException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||