public class DB2WKBReader extends Object
Version of JTS WKB Reader adjusted for DB2
for JTS Java Doc| Constructor and Description |
|---|
DB2WKBReader() |
DB2WKBReader(GeometryFactory geometryFactory) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
hexToBytes(String hex)
Converts a hexadecimal string to a byte array.
|
Geometry |
read(byte[] bytes)
Reads a single
Geometry from a byte array. |
Geometry |
read(InStream is)
Reads a
Geometry from an {@link InStream). |
public DB2WKBReader()
public DB2WKBReader(GeometryFactory geometryFactory)
public static byte[] hexToBytes(String hex)
hex - a string containing hex digitspublic Geometry read(byte[] bytes)
throws ParseException
Geometry from a byte array.bytes - the byte array to read fromParseException - if a parse exception occurspublic Geometry read(InStream is)
throws IOException,
ParseException
Geometry from an {@link InStream).is - the stream to read fromIOExceptionParseExceptionCopyright © 1996–2019 Geotools. All rights reserved.