|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.io.WKBHexFileReader
public class WKBHexFileReader
Reads a sequence of Geometry
s in WKBHex format
from a text file.
Each WKBHex geometry must be on a single line
The geometries in the file may be separated by any amount
of whitespace and newlines.
Constructor Summary | |
---|---|
WKBHexFileReader(java.io.File file,
WKBReader wkbReader)
Creates a new WKBHexFileReader given the File to read from and a WKTReader to use to parse the geometries. |
|
WKBHexFileReader(java.io.Reader reader,
WKBReader wkbReader)
Creates a new WKBHexFileReader, given a Reader to read from. |
|
WKBHexFileReader(java.lang.String filename,
WKBReader wkbReader)
Creates a new WKBHexFileReader, given the name of the file to read from. |
Method Summary | |
---|---|
java.util.List |
read()
Reads a sequence of geometries. |
void |
setLimit(int limit)
Sets the maximum number of geometries to read. |
void |
setOffset(int offset)
Sets the number of geometries to skip before storing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WKBHexFileReader(java.io.File file, WKBReader wkbReader)
file
- the File to read fromwkbReader
- the geometry reader to usepublic WKBHexFileReader(java.lang.String filename, WKBReader wkbReader)
filename
- the name of the file to read fromwkbReader
- the geometry reader to usepublic WKBHexFileReader(java.io.Reader reader, WKBReader wkbReader)
Reader
to read from.
reader
- the reader to read fromwkbReader
- the geometry reader to useMethod Detail |
---|
public void setLimit(int limit)
limit
- the maximum number of geometries to readpublic void setOffset(int offset)
offset
- the number of geometries to skippublic java.util.List read() throws java.io.IOException, ParseException
java.io.IOException
- if an I/O exception was encountered
ParseException
- if an error occured reading a geometry
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |