|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDB2WKBWriter
public class DB2WKBWriter
for JTS Java Doc
modules/plugin/jdbc-db2 (gt-jdbc-db2.jar)
Constructor Summary | |
---|---|
DB2WKBWriter()
Creates a writer that writes Geometry s with
output dimension = 2 and BIG_ENDIAN byte order |
|
DB2WKBWriter(int outputDimension)
Creates a writer that writes Geometry s with
the given dimension (2 or 3) for output coordinates
and BIG_ENDIAN byte order. |
|
DB2WKBWriter(int outputDimension,
int byteOrder)
Creates a writer that writes Geometry s with
the given dimension (2 or 3) for output coordinates
and byte order
If the input geometry has a small coordinate dimension,
coordinates will be padded with NULL_ORDINATE . |
Method Summary | |
---|---|
static String |
bytesToHex(byte[] bytes)
|
static int |
guessCoorinateDims(Geometry g)
returns the coordinate dimension for a geometry |
byte[] |
write(Geometry geom)
Writes a Geometry into a byte array. |
void |
write(Geometry geom,
OutStream os)
Writes a Geometry to an OutStream . |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DB2WKBWriter()
Geometry
s with
output dimension = 2 and BIG_ENDIAN byte order
public DB2WKBWriter(int outputDimension)
Geometry
s with
the given dimension (2 or 3) for output coordinates
and BIG_ENDIAN
byte order.
If the input geometry has a small coordinate dimension,
coordinates will be padded with NULL_ORDINATE
.
outputDimension
- the coordinate dimension to output (2 or 3)public DB2WKBWriter(int outputDimension, int byteOrder)
Geometry
s with
the given dimension (2 or 3) for output coordinates
and byte order
If the input geometry has a small coordinate dimension,
coordinates will be padded with NULL_ORDINATE
.
outputDimension
- the coordinate dimension to output (2 or 3)byteOrder
- the byte ordering to useMethod Detail |
---|
public static final int guessCoorinateDims(Geometry g)
Geometry
- g
public static String bytesToHex(byte[] bytes)
public byte[] write(Geometry geom)
Geometry
into a byte array.
geom
- the geometry to write
public void write(Geometry geom, OutStream os) throws IOException
Geometry
to an OutStream
.
geom
- the geometry to writeos
- the out stream to write to
IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |