Package org.locationtech.jtstest.util.io
Class MultiFormatBufferedReader
- java.lang.Object
-
- org.locationtech.jtstest.util.io.MultiFormatBufferedReader
-
-
Constructor Summary
Constructors Constructor Description MultiFormatBufferedReader()MultiFormatBufferedReader(GeometryFactory geomFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Geometry>read(Reader reader)static List<Geometry>read(Reader reader, int limit, int offset, GeometryFactory geomFactory)List<Geometry>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 Detail
-
MultiFormatBufferedReader
public MultiFormatBufferedReader()
-
MultiFormatBufferedReader
public MultiFormatBufferedReader(GeometryFactory geomFactory)
-
-
Method Detail
-
read
public static List<Geometry> read(Reader reader, int limit, int offset, GeometryFactory geomFactory) throws Exception
- Throws:
Exception
-
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
public List<Geometry> read(Reader reader) throws ParseException, IOException
- Throws:
ParseExceptionIOException
-
readWKT
public List<Geometry> readWKT(Reader rdr, GeometryFactory geomFact) throws ParseException, IOException
- Throws:
ParseExceptionIOException
-
-