| |
|
| java.lang.Object org.deegree.io.dbaseapi.DBaseFile
DBaseFile | public class DBaseFile (Code) | | 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
author: Andreas Poth author: last edited by: $Author: apoth $ version: $Revision: 9342 $, $Date: 2007-12-27 04:32:57 -0800 (Thu, 27 Dec 2007) $ |
DBaseFile | public DBaseFile(String url) throws IOException(Code) | | constructor
only for reading a dBase file
Parameters: url - |
close | public void close()(Code) | | |
getDataTypes | public String[] getDataTypes(String[] fields) throws DBaseException(Code) | | Parameters: fields - the datatype of each column of the database specified by fields
|
getFeatureType | public FeatureType getFeatureType()(Code) | | the feature type of the generated features |
goTop | public void goTop() throws DBaseException(Code) | | Positions the record pointer at the top of the table.
|
nextRecord | public boolean nextRecord() throws DBaseException(Code) | | Advance the record pointer to the next record.
true if pointer has been increased |
setFeatureType | public void setFeatureType(FeatureType ft, Map<PropertyType, String> ftMapping)(Code) | | Overrides the default feature type (which is generated from all columns in the dbase file) to
allow customized naming and ordering of properties.
Parameters: ft - Parameters: ftMapping - |
setRecord | public void setRecord(ArrayList recData) throws DBaseException(Code) | | writes a data record to byte array representing
the data section of the dBase file. The method gets the data type of each field in recData
from fieldDesc wich has been set at the constructor.
Parameters: recData - throws: DBaseException - |
setRecord | public void setRecord(int index, ArrayList recData) throws DBaseException(Code) | | writes a data record to byte array
representing the data section of the dBase file. The method gets the data type of each field
in recData from fieldDesc wich has been set at the constructor. index specifies the location
of the retrieved record in the datasection. if an invalid index is used an exception will be
thrown
Parameters: index - Parameters: recData - throws: DBaseException - |
|
|
|