org.deegree.feature.persistence.shape
Class DBFReader

java.lang.Object
  extended by 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 $

Constructor Summary
DBFReader(RandomAccessFile in, Charset encoding, QName ftName, GeometryPropertyType.GeometryType geomType, List<org.deegree.feature.persistence.shape.ShapeFeatureStoreProvider.Mapping> mappings)
          Already reads/parses the header.
 
Method Summary
 void close()
          Closes the underlying input stream.
 HashMap<SimplePropertyType,Property> getEntry(int num)
           
 GenericFeatureType getFeatureType()
           
 LinkedList<PropertyType> getFields()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 .shp
mappings - may be null, in which case the dbf names will be used
Throws:
IOException
Method Detail

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.