|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.javel.gisbeans.io.esri.DbfReader
public class DbfReader
This class reads a dbf file (dBaseIII) used in Esri ShapeFiles
| Constructor Summary | |
|---|---|
DbfReader(URL dbfFile)
constructs a DbfReader |
|
| Method Summary | |
|---|---|
String[] |
getColumnNames()
returns the columnNames |
String[] |
getRow(int rowNumber)
returns the row |
int[] |
getRowNumbers(String attribute,
String columnName)
returns the array of rowNumbers belonging to a attribute/column pair |
String[][] |
getRows()
returns a table of all attributes stored for the particular dbf-file |
boolean |
isCache()
may we cache parsed data for a session. |
void |
setCache(boolean cache)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbfReader(URL dbfFile)
throws IOException
dbfFile - the URL of the dbfFile
IOException - whenever url does not occur to exist.| Method Detail |
|---|
public String[] getColumnNames()
public String[] getRow(int rowNumber)
throws IOException,
IndexOutOfBoundsException
rowNumber - the rowNumber
IOException
IndexOutOfBoundsException - whenever the rowNumber > numRecords
public String[][] getRows()
throws IOException
IOException - an IOException
public int[] getRowNumbers(String attribute,
String columnName)
throws IOException
attribute - the attribute valuecolumnName - the name of the column
IOExceptionpublic boolean isCache()
public void setCache(boolean cache)
cache - The cache to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||