org.deegree.feature.persistence.shape
Class DBFReader
java.lang.Object
org.deegree.feature.persistence.shape.DBFReader
public class DBFReader
- extends Object
DBFReader
- Version:
- $Revision: 31248 $, $Date: 2011-07-11 14:06:46 +0200 (Mon, 11 Jul 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBFReader
public DBFReader(RandomAccessFile in,
Charset encoding,
QName ftName,
GeometryPropertyType.GeometryType geomType,
List<org.deegree.feature.persistence.shape.ShapeFeatureStoreProvider.Mapping> mappings)
throws IOException
- Already reads/parses the header.
- Parameters:
in
- encoding
- ftName
- the name of the feature type, also used for namespace URI and namespace prefix of property
declarations (must not be null)geomType
- the geometry type of the .shpmappings
- may be null, in which case the dbf names will be used
- Throws:
IOException
getEntry
public HashMap<SimplePropertyType,Property> getEntry(int num)
throws IOException
- Parameters:
num
- zero based
- Returns:
- a map with the property types mapped to their value (which might be null)
- Throws:
IOException
close
public void close()
throws IOException
- Closes the underlying input stream.
- Throws:
IOException
getFields
public LinkedList<PropertyType> getFields()
- Returns:
- the property types of the contained fields
getFeatureType
public GenericFeatureType getFeatureType()
- Returns:
- the feature type
size
public int size()
- Returns:
- the total number of records in this dbf
Copyright © 2011. All Rights Reserved.