gistoolkit.datasources.shapefile
Class ShapeFileReader

java.lang.Object
  extended bygistoolkit.datasources.shapefile.ShapeFileStream
      extended bygistoolkit.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

Field Summary
protected  LEDataInputStream myShpStream
           
protected  LEDataInputStream myShxStream
           
 
Fields inherited from class gistoolkit.datasources.shapefile.ShapeFileStream
myDbaseStream, myDbfExt, myFilename, myGzipExt, myHeader, myShpExt, myShxExt
 
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 gistoolkit.datasources.shapefile.ShapeFileStream
equiv, getHeader, setFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myShpStream

protected LEDataInputStream myShpStream

myShxStream

protected LEDataInputStream myShxStream
Constructor Detail

ShapeFileReader

public ShapeFileReader(java.lang.String inFilename)
                throws java.io.FileNotFoundException,
                       java.io.IOException
Create a reader on the named file

Method Detail

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