| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.property.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
 
| Constructor Summary | |
| PropertyAttributeReader(java.io.File file)Creates a new PropertyAttributeReader object. | |
| Method Summary | |
|  void | close()DOCUMENT ME! | 
|  int | getAttributeCount()DOCUMENT ME! | 
|  AttributeType | getAttributeType(int index)DOCUMENT ME! | 
|  java.lang.String | getFeatureID()DOCUMENT ME! | 
|  boolean | hasNext()DOCUMENT ME! | 
|  void | next()DOCUMENT ME! | 
|  java.lang.Object | read(int index)DOCUMENT ME! | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public PropertyAttributeReader(java.io.File file)
                        throws java.io.IOException
file - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
DataSourceException - DOCUMENT ME!| Method Detail | 
public int getAttributeCount()
getAttributeCount in interface AttributeReader
public AttributeType getAttributeType(int index)
                               throws java.lang.ArrayIndexOutOfBoundsException
getAttributeType in interface AttributeReaderindex - DOCUMENT ME!
java.lang.ArrayIndexOutOfBoundsException - DOCUMENT ME!
public void close()
           throws java.io.IOException
close in interface AttributeReaderjava.io.IOException - DOCUMENT ME!
public boolean hasNext()
                throws java.io.IOException
hasNext in interface AttributeReaderjava.io.IOException - DOCUMENT ME!
public void next()
          throws java.io.IOException
next in interface AttributeReaderjava.io.IOException - DOCUMENT ME!
java.util.NoSuchElementException - DOCUMENT ME!public java.lang.String getFeatureID()
public java.lang.Object read(int index)
                      throws java.io.IOException,
                             java.lang.ArrayIndexOutOfBoundsException
read in interface AttributeReaderindex - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
java.lang.ArrayIndexOutOfBoundsException - DOCUMENT ME!
DataSourceException - DOCUMENT ME!| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||