Class MultiFormatBufferedReader
java.lang.Object
org.locationtech.jtstest.util.io.MultiFormatBufferedReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(Reader reader, int limit, int offset, GeometryFactory geomFactory) readWKT(Reader rdr, GeometryFactory geomFact) 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
-
MultiFormatBufferedReader
public MultiFormatBufferedReader() -
MultiFormatBufferedReader
-
-
Method Details
-
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
- Throws:
ParseExceptionIOException
-
readWKT
public List<Geometry> readWKT(Reader rdr, GeometryFactory geomFact) throws ParseException, IOException - Throws:
ParseExceptionIOException
-