|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.gis.shapefile.DbaseFile
public class DbaseFile
Class to read a dbase file in its entirety.
| Field Summary | |
|---|---|
static int |
DBASE5DOS
_more_ |
static int |
DBASE5WIN
_more_ |
static int |
DBASEIII
_more_ |
static int |
DBASEIV
_more_ |
| Constructor Summary | |
|---|---|
DbaseFile(File file)
|
|
DbaseFile(InputStream s)
_more_ |
|
DbaseFile(String spec)
|
|
DbaseFile(URL url)
|
|
| Method Summary | |
|---|---|
boolean[] |
getBooleansByName(String Name)
Extract the boolean array of data for a field by Name. |
double[] |
getDoublesByName(String Name)
Extract the double array of data for a field by Name. |
DbaseData |
getField(int index)
Extract the data for a field by field index number. |
DbaseData |
getField(String Name)
Extract the data for a given field by name. |
String |
getFieldName(int i)
Get the name of a field by column number. |
String[] |
getFieldNames()
Get a list of all the field names in the dbase file |
int |
getNumFields()
Get the number of fields in the file. |
int |
getNumRecords()
|
String[] |
getStringsByName(String Name)
Extract the string array of data for a field by Name. |
boolean |
isLoaded()
|
int |
loadData()
Load the dbase file data. |
int |
loadHeader()
Load the dbase file header. |
static void |
main(String[] args)
Test program, dumps a Dbase file to stdout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DBASEIII
public static int DBASEIV
public static int DBASE5DOS
public static int DBASE5WIN
| Constructor Detail |
|---|
public DbaseFile(URL url)
throws MalformedURLException,
IOException
url - URL to the *.dbf file
IOException
MalformedURLException
public DbaseFile(String spec)
throws IOException
spec - Location of the *.dbf file, as either a URL or filename
IOExceptionpublic DbaseFile(File file)
file - A file object of the *.dbf file.public DbaseFile(InputStream s)
s - | Method Detail |
|---|
public int loadHeader()
public int loadData()
public DbaseData getField(int index)
index - Column number of the field to extract.
public DbaseData getField(String Name)
Name - String with the name of the field to retrieve.
public double[] getDoublesByName(String Name)
Name - String with the name of the field to retrieve
public String[] getStringsByName(String Name)
Name - String with the name of the field to retrieve
public boolean[] getBooleansByName(String Name)
Name - String with the name of the field to retrieve
public String getFieldName(int i)
i - The column number of the field name.
public String[] getFieldNames()
public int getNumFields()
public int getNumRecords()
public boolean isLoaded()
public static void main(String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||