Class MultiFormatFileReader
java.lang.Object
org.locationtech.jtstest.util.io.MultiFormatFileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(String filename, int limit, int offset, GeometryFactory geomFactory) static GeometryreadGeometry(String filename, int limit, int offset, GeometryFactory geomFactory) voidsetLimit(int limit) Sets the maximum number of geometries to read.voidsetOffset(int offset) Sets the number of geometries to skip before storing.
-
Constructor Details
-
MultiFormatFileReader
public MultiFormatFileReader() -
MultiFormatFileReader
-
-
Method Details
-
readGeometry
public static Geometry readGeometry(String filename, int limit, int offset, GeometryFactory geomFactory) throws Exception - Throws:
Exception
-
read
-
setLimit
public void setLimit(int limit) Sets the maximum number of geometries to read.- Parameters:
limit- the maximum number of geometries to read
-
setOffset
public void setOffset(int offset) Sets the number of geometries to skip before storing.- Parameters:
offset- the number of geometries to skip
-
read
-
readList
-