|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.shapefile.DbaseFile
Class to read and write data to a dbase III format file. Creation date: (5/15/2001 5:15:13 PM)
Constructor Summary | |
DbaseFile()
DbaseFile constructor comment. |
|
DbaseFile(java.lang.String inFileName)
DbaseFile constructor comment. |
Method Summary | |
void |
addColumn(java.lang.String inName,
char inType,
int inLength,
int inDecimalPlace)
Adds the column to the file. |
protected void |
addRecord(java.lang.Object[] inRecord)
Adds the record to the dataset. |
int |
getFieldDecimalLength(int inIndex)
Retrieve the location of the decimal point. |
int |
getFieldLength(int inIndex)
Retrieve the length of the given column. |
java.lang.String |
getFieldName(int inIndex)
Retrieve the name of the given column. |
java.lang.String[] |
getFieldNames()
Returns the array of field names. |
char |
getFieldType(int inIndex)
Retrieve the type of the given column. |
java.lang.String |
getFileName()
Retrieves the file name to read or write. |
int |
getNumRecords()
|
java.lang.Object[] |
getRecord(int inIndex)
|
void |
read()
read the DBF file into memory. |
protected void |
removeAllRecords()
Removes all data from the dataset |
void |
removeColumn(java.lang.String inName)
Removes the named column from the file |
void |
setFileName(java.lang.String inFileName)
Set the file name to read or write. |
void |
setRecord(java.lang.Object[] inRecord,
int inIndex)
|
static void |
setVerbose(boolean inVerbose)
|
void |
setWarnings(boolean inWarning)
Print warnings to system.out. |
void |
write()
write the DBF file to disk. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbaseFile()
public DbaseFile(java.lang.String inFileName)
Method Detail |
public void addColumn(java.lang.String inName, char inType, int inLength, int inDecimalPlace) throws java.lang.Exception
java.lang.Exception
public void removeColumn(java.lang.String inName)
protected void addRecord(java.lang.Object[] inRecord)
public java.lang.String[] getFieldNames()
public java.lang.String getFileName()
public int getNumRecords()
public java.lang.Object[] getRecord(int inIndex)
public java.lang.String getFieldName(int inIndex)
public char getFieldType(int inIndex)
public int getFieldLength(int inIndex)
public int getFieldDecimalLength(int inIndex)
public void read() throws java.lang.Exception
java.lang.Exception
protected void removeAllRecords()
public void setFileName(java.lang.String inFileName)
public void setWarnings(boolean inWarning)
public void setRecord(java.lang.Object[] inRecord, int inIndex)
public static void setVerbose(boolean inVerbose)
public void write() throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |