Class WKBHexFileReader
java.lang.Object
org.locationtech.jts.io.WKBHexFileReader
-
Constructor Summary
ConstructorsConstructorDescriptionWKBHexFileReader(File file, WKBReader wkbReader) Creates a new WKBHexFileReader given the File to read from and a WKTReader to use to parse the geometries.WKBHexFileReader(Reader reader, WKBReader wkbReader) Creates a new WKBHexFileReader, given aReaderto read from.WKBHexFileReader(String filename, WKBReader wkbReader) Creates a new WKBHexFileReader, given the name of the file to read from. -
Method Summary
-
Constructor Details
-
WKBHexFileReader
-
WKBHexFileReader
-
WKBHexFileReader
-
-
Method Details
-
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
Reads a sequence of geometries. If an offset is specified, geometries read up to the offset count are skipped. If a limit is specified, no more than limit geometries are read.- Returns:
- the list of geometries read
- Throws:
IOException- if an I/O exception was encounteredParseException- if an error occurred reading a geometry
-