org.deegree.feature.persistence.shape
Class DBFReader
java.lang.Object
org.deegree.feature.persistence.shape.DBFReader
public class DBFReader
- extends java.lang.Object
DBFReader
- Version:
- $Revision: 28773 $, $Date: 2010-12-15 11:58:08 +0100 (Mi, 15. Dez 2010) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Constructor Summary |
DBFReader(java.io.RandomAccessFile in,
java.nio.charset.Charset encoding,
javax.xml.namespace.QName ftName)
Already reads/parses the header. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBFReader
public DBFReader(java.io.RandomAccessFile in,
java.nio.charset.Charset encoding,
javax.xml.namespace.QName ftName)
throws java.io.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)
- Throws:
java.io.IOException
getEntry
public java.util.HashMap<SimplePropertyType,Property> getEntry(int num)
throws java.io.IOException
- Parameters:
num
- zero based
- Returns:
- a map with the property types mapped to their value (which might be null)
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Closes the underlying input stream.
- Throws:
java.io.IOException
getFields
public java.util.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.