|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPropertyAttributeReader
public class PropertyAttributeReader
Simple AttributeReader that works against Java properties files.
This AttributeReader is part of the geotools2 DataStore tutorial, and should be considered a Toy.
The content of this file should start with a the property "_" with the value being the typeSpec describing the featureType. Thereafter each line will should have a FeatureID as the property and the attribtues as the value separated by | characters.
_=id:Integer|name:String|geom:Geometry
fid1=1|Jody|well known text
fid2=2|Brent|well known text
fid3=3|Dave|well known text
May values may be represented by a special tag:
. An empty element: ||
is interprested as the empty string:
fid4=4|| -> Feature( id=2, name="", geom=null )
Constructor Summary | |
---|---|
PropertyAttributeReader(File file)
Creates a new PropertyAttributeReader object. |
Method Summary | |
---|---|
void |
close()
DOCUMENT ME! |
int |
getAttributeCount()
DOCUMENT ME! |
AttributeDescriptor |
getAttributeType(int index)
DOCUMENT ME! |
String |
getFeatureID()
DOCUMENT ME! |
boolean |
hasNext()
DOCUMENT ME! |
void |
next()
DOCUMENT ME! |
Object |
read(int index)
DOCUMENT ME! |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyAttributeReader(File file) throws IOException
file
- DOCUMENT ME!
IOException
- DOCUMENT ME!
DataSourceException
- DOCUMENT ME!Method Detail |
---|
public int getAttributeCount()
getAttributeCount
in interface AttributeReader
public AttributeDescriptor getAttributeType(int index) throws ArrayIndexOutOfBoundsException
getAttributeType
in interface AttributeReader
index
- DOCUMENT ME!
ArrayIndexOutOfBoundsException
- DOCUMENT ME!public void close() throws IOException
close
in interface AttributeReader
IOException
- DOCUMENT ME!public boolean hasNext() throws IOException
hasNext
in interface AttributeReader
IOException
- DOCUMENT ME!public void next() throws IOException
next
in interface AttributeReader
IOException
- DOCUMENT ME!
NoSuchElementException
- DOCUMENT ME!public String getFeatureID()
public Object read(int index) throws IOException, ArrayIndexOutOfBoundsException
read
in interface AttributeReader
index
- DOCUMENT ME!
IOException
- DOCUMENT ME!
ArrayIndexOutOfBoundsException
- DOCUMENT ME!
DataSourceException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |