org.geotools.shapefile
Class ShapefileHeader

java.lang.Object
  extended by org.geotools.shapefile.ShapefileHeader

public class ShapefileHeader
extends java.lang.Object

Author:
jamesm

Field Summary
 int fileLength
           
 
Constructor Summary
ShapefileHeader(EndianDataInputStream file)
           
ShapefileHeader(com.vividsolutions.jts.geom.GeometryCollection geometries, int dims)
           
 
Method Summary
 com.vividsolutions.jts.geom.Envelope getBounds()
           
 int getShapeType()
           
 int getVersion()
           
 void setFileLength(int fileLength)
           
 java.lang.String toString()
           
 void write(EndianDataOutputStream file)
           
 void writeToIndex(EndianDataOutputStream file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileLength

public int fileLength
Constructor Detail

ShapefileHeader

public ShapefileHeader(EndianDataInputStream file)
                throws java.io.IOException
Throws:
java.io.IOException

ShapefileHeader

public ShapefileHeader(com.vividsolutions.jts.geom.GeometryCollection geometries,
                       int dims)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setFileLength

public void setFileLength(int fileLength)

write

public void write(EndianDataOutputStream file)
           throws java.io.IOException
Throws:
java.io.IOException

writeToIndex

public void writeToIndex(EndianDataOutputStream file)
                  throws java.io.IOException
Throws:
java.io.IOException

getShapeType

public int getShapeType()

getVersion

public int getVersion()

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object