public class BinaryWriter extends Object
Constructor and Description |
---|
BinaryWriter() |
Modifier and Type | Method and Description |
---|---|
protected int |
estimateBytes(Geometry geom)
Estimate how much bytes a geometry will need in WKB.
|
static ValueSetter |
valueSetterForEndian(ByteSetter bytes,
byte endian)
Get the appropriate ValueGetter for my endianness
|
byte[] |
writeBinary(Geometry geom) |
byte[] |
writeBinary(Geometry geom,
byte REP)
Write a binary encoded geometry.
|
protected void |
writeGeometry(Geometry geom,
ValueSetter dest)
Parse a geometry starting at offset.
|
String |
writeHexed(Geometry geom) |
String |
writeHexed(Geometry geom,
byte REP)
Write a hex encoded geometry
Is synchronized to protect offset counter.
|
public static ValueSetter valueSetterForEndian(ByteSetter bytes, byte endian)
bytes
- The appropriate Byte Getterpublic String writeHexed(Geometry geom, byte REP)
the consistency checker
public byte[] writeBinary(Geometry geom, byte REP)
Geometry.checkConsistency()
public byte[] writeBinary(Geometry geom)
protected void writeGeometry(Geometry geom, ValueSetter dest)
protected int estimateBytes(Geometry geom)
Copyright © 2014. All rights reserved.