01: package org.geotools.shapefile;
02:
03: import com.vividsolutions.jts.geom.Geometry;
04: import com.vividsolutions.jts.geom.GeometryFactory;
05: import com.vividsolutions.jump.io.EndianDataInputStream;
06: import com.vividsolutions.jump.io.EndianDataOutputStream;
07:
08: public interface ShapeHandler {
09: public int getShapeType();
10:
11: public Geometry read(EndianDataInputStream file,
12: GeometryFactory geometryFactory, int contentLength)
13: throws java.io.IOException, InvalidShapefileException;
14:
15: public void write(Geometry geometry, EndianDataOutputStream file)
16: throws java.io.IOException;
17:
18: public int getLength(Geometry geometry); //length in 16bit words
19: }
|