com.partnersoft.io.formats.shapefile
Class FastShapefileReader

java.lang.Object
  extended by com.partnersoft.io.formats.shapefile.FastShapefileReader
All Implemented Interfaces:
ShapefileConstants, java.util.Iterator

public class FastShapefileReader
extends java.lang.Object
implements ShapefileConstants, java.util.Iterator

New reader for ESRI shapefiles and data. Uses streams for both DBF and SHP files; minimizes object creation.

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.

Field Summary
 Naming currentData
           
 PolylineArray currentPoints
           
 int currentRecordNumber
           
 int currentShapeType
           
 
Fields inherited from interface com.partnersoft.io.formats.shapefile.ShapefileConstants
ARCINFO_ARC, ARCINFO_ARCMAYBE, MULTIPATCH, MULTIPOINT, MULTIPOINTM, MULTIPOINTZ, NULLSHAPE, POINT, POINTM, POINTZ, POLYGON, POLYGONM, POLYGONZ, POLYLINE, POLYLINEM, POLYLINEZ, shapeNames, WHATZIT4, WHATZIT9
 
Constructor Summary
FastShapefileReader(java.io.File shapefile)
           
 
Method Summary
 void close()
           
static void debug(java.lang.String path)
           
 boolean hasNext()
           
static void main(java.lang.String[] argv)
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentRecordNumber

public int currentRecordNumber

currentPoints

public PolylineArray currentPoints

currentData

public Naming currentData

currentShapeType

public int currentShapeType
Constructor Detail

FastShapefileReader

public FastShapefileReader(java.io.File shapefile)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

debug

public static void debug(java.lang.String path)

main

public static void main(java.lang.String[] argv)

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator