gistoolkit.datasources.shapefile
Class ShapeFileStream

java.lang.Object
  extended bygistoolkit.datasources.shapefile.ShapeFileStream
Direct Known Subclasses:
EnvelopeShapeFileReader, ShapeFileReader, ShapeFileWriter

public abstract class ShapeFileStream
extends java.lang.Object

This is a convenience class used by ShapeFileReader and ShapeFileWriter that captures methods used by both.

Author:
head

Field Summary
protected  DbaseFileStream myDbaseStream
           
protected  java.lang.String myDbfExt
           
protected  java.lang.String myFilename
           
protected  java.lang.String myGzipExt
           
protected  ShapeFileHeader myHeader
           
protected  java.lang.String myShpExt
           
protected  java.lang.String myShxExt
           
 
Constructor Summary
protected ShapeFileStream(java.lang.String inFilename)
           
 
Method Summary
 boolean equiv(ShapeFileStream that)
          Returns equivalency between this "stream" and another.
 ShapeFileHeader getHeader()
          Return the shapefile header associated with this reader
protected  void setFile(java.lang.String inFilename)
          Set the file name for this shape file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myFilename

protected java.lang.String myFilename

myShpExt

protected java.lang.String myShpExt

myShxExt

protected java.lang.String myShxExt

myDbfExt

protected java.lang.String myDbfExt

myGzipExt

protected java.lang.String myGzipExt

myHeader

protected ShapeFileHeader myHeader

myDbaseStream

protected DbaseFileStream myDbaseStream
Constructor Detail

ShapeFileStream

protected ShapeFileStream(java.lang.String inFilename)
Method Detail

setFile

protected void setFile(java.lang.String inFilename)
Set the file name for this shape file. The case-sensitive logic is needed for filesystems where case is relevant.


getHeader

public final ShapeFileHeader getHeader()
Return the shapefile header associated with this reader


equiv

public boolean equiv(ShapeFileStream that)
Returns equivalency between this "stream" and another. Equivalency means that the headers of the files being read (or written) are consistent (same types of shapes and attributes in each).