|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.extra.shapefile.DBFParser
public class DBFParser
| Field Summary | |
|---|---|
static int |
END_OF_DATA
|
static int |
TERMINATOR
|
static int |
VERSION
|
| Constructor Summary | |
|---|---|
DBFParser()
Default constuctor |
|
DBFParser(byte[] dbfData)
DBF file parser constuctor |
|
DBFParser(DBFParser other)
Copy constuctor |
|
DBFParser(java.io.File dbfFile)
DBF file parser constuctor |
|
DBFParser(java.util.List<Field> fields)
Constuctor |
|
| Method Summary | |
|---|---|
void |
addField(Field fld)
Adds a new field to the end of the list |
void |
addRecord(java.lang.String[] rcd)
Adds a new record to the end of the list |
Field |
getFieldAt(int ndx)
Return the field at the specified index |
int |
getFieldCount()
Return number of fields |
java.lang.String |
getFieldNameAt(int ndx)
Return the field name at the specified index |
java.util.List<Field> |
getFields()
Return list of fields |
int |
getFileLength()
|
int |
getHeaderSize()
|
RTProperties |
getPropertiesAt(int ndx,
boolean ignoreCase)
Return the record at the specified index |
java.lang.String[] |
getRecordAt(int ndx)
Get record at index |
int |
getRecordCount()
Return number of records |
int |
getRecordSize()
Return the full record length |
boolean |
hasFields()
Returns true if fields/columns are present |
boolean |
hasRecords()
Returns true if this instance contains records |
static void |
main(java.lang.String[] argv)
|
void |
setUpdateTime(DateTime updateTime)
|
void |
setUpdateTime(int updYYYY,
int updMM,
int updDD)
|
java.lang.String |
toString()
|
Payload |
write(Payload p)
Write header/data to Payload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION
public static final int TERMINATOR
public static final int END_OF_DATA
| Constructor Detail |
|---|
public DBFParser()
public DBFParser(DBFParser other)
other - The DBFParser instance to copypublic DBFParser(java.util.List<Field> fields)
fields - The defined fields
public DBFParser(byte[] dbfData)
throws java.io.IOException
dbfData - The byte array containing the dbf data to parse
java.io.IOException
public DBFParser(java.io.File dbfFile)
throws java.io.IOException
dbfFile - The file containing the dbf data to parse
java.io.IOException| Method Detail |
|---|
public void setUpdateTime(DateTime updateTime)
public void setUpdateTime(int updYYYY,
int updMM,
int updDD)
public int getFieldCount()
public boolean hasFields()
public java.util.List<Field> getFields()
public void addField(Field fld)
public Field getFieldAt(int ndx)
public java.lang.String getFieldNameAt(int ndx)
public int getRecordSize()
public void addRecord(java.lang.String[] rcd)
public int getRecordCount()
public boolean hasRecords()
public java.lang.String[] getRecordAt(int ndx)
ndx - The Index
public RTProperties getPropertiesAt(int ndx,
boolean ignoreCase)
public int getHeaderSize()
public int getFileLength()
public Payload write(Payload p)
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||