gistoolkit.datasources.shapefile
Class ShapeFileStream
java.lang.Object
gistoolkit.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
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 |
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
ShapeFileStream
protected ShapeFileStream(java.lang.String inFilename)
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).