com.vividsolutions.jts.io
Class WKBReader
java.lang.Object
com.vividsolutions.jts.io.WKBReader
public class WKBReader
- extends java.lang.Object
Reads a Geometryfrom a byte stream in Well-Known Binary format.
Supports use of an InStream, which allows easy use
with arbitary byte stream sources.
This class is designed to support reuse of a single instance to read multiple
geometries. This class is not thread-safe; each thread should create its own
instance.
- See Also:
WKBWriter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WKBReader
public WKBReader()
WKBReader
public WKBReader(GeometryFactory geometryFactory)
read
public Geometry read(byte[] bytes)
throws java.io.IOException,
ParseException
- Reads a single
Geometry from a byte array.
- Parameters:
bytes - the byte array to read from
- Returns:
- the geometry read
- Throws:
java.io.IOException - if an input exception occurs
ParseException - if a parse exception occurs
read
public Geometry read(InStream is)
throws java.io.IOException,
ParseException
- Reads a
Geometry from an {@link InStream).
- Parameters:
is - the stream to read from
- Returns:
- the Geometry read
- Throws:
java.io.IOException
ParseException