gistoolkit.datasources.shapefile
Class ShapeFileReader
java.lang.Object
gistoolkit.datasources.shapefile.ShapeFileStream
gistoolkit.datasources.shapefile.ShapeFileReader
- public class ShapeFileReader
- extends ShapeFileStream
A ShapeFileReader is used to pull shapes out of a shapefile one at a
time.
- Author:
- head
Constructor Summary |
ShapeFileReader(java.lang.String inFilename)
Create a reader on the named file |
Method Summary |
ShapeFileRecord |
read()
Read a single shapefile record
returns the read shapefile record or null if there are no more records |
protected void |
readHeader()
Reads the shapefile header record |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myShpStream
protected LEDataInputStream myShpStream
myShxStream
protected LEDataInputStream myShxStream
ShapeFileReader
public ShapeFileReader(java.lang.String inFilename)
throws java.io.FileNotFoundException,
java.io.IOException
- Create a reader on the named file
readHeader
protected void readHeader()
- Reads the shapefile header record
read
public ShapeFileRecord read()
throws java.io.IOException
- Read a single shapefile record
returns the read shapefile record or null if there are no more records
- Throws:
java.io.IOException