|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String url)
constructor only for reading a dBase file |
|
DBaseFile(java.lang.String url,
FieldDescriptor[] fieldDesc)
constructor only for writing a dBase file |
Method Summary | |
---|---|
void |
close()
|
java.lang.String |
getColumn(java.lang.String col_name)
|
int |
getDataLength(java.lang.String field)
|
java.lang.String[] |
getDataTypes()
|
java.lang.String[] |
getDataTypes(java.lang.String[] fields)
|
FeatureType |
getFeatureType()
|
Feature |
getFRow(int rowNo)
Returns a row of the dBase file as a Feature instance. |
java.lang.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,
java.util.Map<PropertyType,java.lang.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(int index,
java.util.List<?> recData)
writes a data record to byte array representing the data section of the dBase file. |
void |
setRecord(java.util.List<?> 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(java.lang.String url) throws java.io.IOException
url
-
java.io.IOException
public DBaseFile(java.lang.String url, FieldDescriptor[] fieldDesc) throws DBaseException
url
- fieldDesc
-
DBaseException
Method Detail |
---|
public void close()
public void setFeatureType(FeatureType ft, java.util.Map<PropertyType,java.lang.String> ftMapping)
ft
- ftMapping
- public int getRecordNum() throws DBaseException
DBaseException
public void goTop() throws DBaseException
DBaseException
public boolean nextRecord() throws DBaseException
DBaseException
public java.lang.String getColumn(java.lang.String col_name) throws DBaseException
col_name
-
DBaseException
public java.lang.String[] getProperties() throws DBaseException
DBaseException
public java.lang.String[] getDataTypes() throws DBaseException
DBaseException
public int getDataLength(java.lang.String field) throws DBaseException
field
-
DBaseException
public java.lang.String[] getDataTypes(java.lang.String[] fields) throws DBaseException
fields
-
DBaseException
public Feature getFRow(int rowNo) throws DBaseException
Feature
instance.
rowNo
-
DBaseException
public void writeAllToFile() throws java.io.IOException, DBaseException
java.io.IOException
DBaseException
public void setRecord(java.util.List<?> recData) throws DBaseException
recData
-
DBaseException
public void setRecord(int index, java.util.List<?> recData) throws DBaseException
index
- recData
-
DBaseException
public FeatureType getFeatureType()
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org