|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.shapefile.DbaseFileHeader
Class to represent the header of a Dbase III file. Creation date: (5/15/2001 5:15:30 PM)
Nested Class Summary | |
(package private) class |
DbaseFileHeader.DbaseFieldDescriptor
Class for holding the information assicated with a record. |
Constructor Summary | |
DbaseFileHeader()
DbaseFileHreader constructor comment. |
Method Summary | |
void |
addColumn(java.lang.String inFieldName,
char inFieldType,
int inFieldLength,
int inDecimalCount)
Add a column to this DbaseFileHeader. |
int |
getFieldDecimalCount(int inIndex)
|
DbaseFileHeader.DbaseFieldDescriptor |
getFieldDescription(int inIndex)
Return the Field Descriptor for the given field. |
int |
getFieldLength(int inIndex)
|
java.lang.String |
getFieldName(int inIndex)
|
char |
getFieldType(int inIndex)
|
int |
getHeaderLength()
Return the length of the header |
java.util.Date |
getLastUpdateDate()
Return the date this file was last updated. |
int |
getNumFields()
Return the number of fields in the records. |
int |
getNumRecords()
Return the number of records in the file |
int |
getRecordLength()
Return the length of the records in bytes. |
void |
readHeader(LEDataInputStream in)
Read the header data from the DBF file. |
int |
removeColumn(java.lang.String inFieldName)
Remove a column from this DbaseFileHeader. |
protected void |
setNumRecords(int inNumRecords)
Set the number of records in the file |
void |
setWarnings(boolean inWarning)
Print warnings to system.out. |
void |
writeHeader(LEDataOutputStream out)
Write the header data to the DBF file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbaseFileHeader()
Method Detail |
public void setWarnings(boolean inWarning)
public void addColumn(java.lang.String inFieldName, char inFieldType, int inFieldLength, int inDecimalCount) throws java.lang.Exception
java.lang.Exception
public int removeColumn(java.lang.String inFieldName)
public DbaseFileHeader.DbaseFieldDescriptor getFieldDescription(int inIndex)
public int getFieldLength(int inIndex)
public int getFieldDecimalCount(int inIndex)
public java.lang.String getFieldName(int inIndex)
public char getFieldType(int inIndex)
public java.util.Date getLastUpdateDate()
public int getNumFields()
public int getNumRecords()
public int getRecordLength()
public int getHeaderLength()
public void readHeader(LEDataInputStream in) throws java.lang.Exception
java.lang.Exception
protected void setNumRecords(int inNumRecords)
public void writeHeader(LEDataOutputStream out) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |