|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.io.dbaseapi.DBaseFile
public class DBaseFile
the datatypes of the dBase file and their representation as java types: dBase-type dBase-type-ID java-type character "C" String float "F" Float number "N" Double logical "L" String memo "M" String date "D" Date binary "B" ByteArrayOutputStream
Constructor Summary | |
---|---|
DBaseFile(String url)
constructor only for reading a dBase file |
|
DBaseFile(String url,
FieldDescriptor[] fieldDesc)
constructor only for writing a dBase file |
Method Summary | |
---|---|
void |
close()
|
String |
getColumn(String col_name)
|
int |
getDataLength(String field)
|
String[] |
getDataTypes()
|
String[] |
getDataTypes(String[] fields)
|
FeatureType |
getFeatureType()
|
Feature |
getFRow(int rowNo)
Returns a row of the dBase file as a Feature instance. |
String[] |
getProperties()
|
int |
getRecordNum()
|
void |
goTop()
Positions the record pointer at the top of the table. |
boolean |
nextRecord()
Advance the record pointer to the next record. |
void |
setFeatureType(FeatureType ft,
Map<PropertyType,String> ftMapping)
Overrides the default feature type (which is generated from all columns in the dbase file) to allow customized naming and ordering of properties. |
void |
setRecord(ArrayList recData)
writes a data record to byte array representing the data section of the dBase file. |
void |
setRecord(int index,
ArrayList recData)
writes a data record to byte array representing the data section of the dBase file. |
void |
writeAllToFile()
creates the dbase file and writes all data to it if the file specified by fname (s.o.) exists it will be deleted! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBaseFile(String url) throws IOException
url
-
IOException
public DBaseFile(String url, FieldDescriptor[] fieldDesc) throws DBaseException
url
- fieldDesc
-
DBaseException
Method Detail |
---|
public void close()
public void setFeatureType(FeatureType ft, Map<PropertyType,String> ftMapping)
ft
- ftMapping
- public int getRecordNum() throws DBaseException
DBaseException
public void goTop() throws DBaseException
DBaseException
public boolean nextRecord() throws DBaseException
DBaseException
public String getColumn(String col_name) throws DBaseException
DBaseException
public String[] getProperties() throws DBaseException
DBaseException
public String[] getDataTypes() throws DBaseException
DBaseException
public int getDataLength(String field) throws DBaseException
field
-
DBaseException
public String[] getDataTypes(String[] fields) throws DBaseException
fields
-
DBaseException
public Feature getFRow(int rowNo) throws DBaseException
Feature
instance.
rowNo
-
DBaseException
public void writeAllToFile() throws IOException, DBaseException
IOException
DBaseException
public void setRecord(ArrayList recData) throws DBaseException
recData
-
DBaseException
public void setRecord(int index, ArrayList recData) throws DBaseException
index
- recData
-
DBaseException
public FeatureType getFeatureType()
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net