org.geotools.data.db2
Class DB2WKBReader
java.lang.Object
org.geotools.data.db2.DB2WKBReader
public class DB2WKBReader
- extends java.lang.Object
- Author:
- Christian Mueller
Version of JTS WKB Reader adjusted for DB2
- See Also:
for JTS Java Doc
Method Summary |
static byte[] |
hexToBytes(java.lang.String hex)
Converts a hexadecimal string to a byte array. |
com.vividsolutions.jts.geom.Geometry |
read(byte[] bytes)
Reads a single Geometry from a byte array. |
com.vividsolutions.jts.geom.Geometry |
read(com.vividsolutions.jts.io.InStream is)
Reads a Geometry from an {@link InStream). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2WKBReader
public DB2WKBReader()
DB2WKBReader
public DB2WKBReader(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
hexToBytes
public static byte[] hexToBytes(java.lang.String hex)
- Converts a hexadecimal string to a byte array.
- Parameters:
hex
- a string containing hex digits
read
public com.vividsolutions.jts.geom.Geometry read(byte[] bytes)
throws com.vividsolutions.jts.io.ParseException
- Reads a single
Geometry
from a byte array.
- Parameters:
bytes
- the byte array to read from
- Returns:
- the geometry read
- Throws:
com.vividsolutions.jts.io.ParseException
- if a parse exception occurs
read
public com.vividsolutions.jts.geom.Geometry read(com.vividsolutions.jts.io.InStream is)
throws java.io.IOException,
com.vividsolutions.jts.io.ParseException
- Reads a
Geometry
from an {@link InStream).
- Parameters:
is
- the stream to read from
- Returns:
- the Geometry read
- Throws:
java.io.IOException
com.vividsolutions.jts.io.ParseException
Copyright © 1996-2010 Geotools. All Rights Reserved.