|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.dataAccess.shape.ShapeUtils
public class ShapeUtils
Utilities for reading and writing the components of shape files.
Field Summary |
---|
Constructor Summary | |
---|---|
ShapeUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getStringForType(int shapeType)
Return a readable string for a shape int type. |
static int |
readBEInt(byte[] b,
int off)
Reads a big endian integer. |
static ESRIBoundingBox |
readBox(byte[] b,
int off)
Reads a bounding box record. |
static double |
readLEDouble(byte[] b,
int off)
Reads a little endian double. |
static int |
readLEInt(BinaryBufferedFile in)
Reads a little endian int from the current location of the given file. |
static int |
readLEInt(byte[] b,
int off)
Reads a little endian integer. |
static long |
readLELong(byte[] b,
int off)
Reads a little endian 8 byte integer. |
static ESRIPoint |
readPoint(byte[] b,
int off)
Reads a point record. |
static int |
writeBEInt(byte[] b,
int off,
int val)
Writes the given integer to the given buffer at the given location in big endian format. |
static int |
writeBox(byte[] b,
int off,
ESRIBoundingBox box)
Writes the given bounding box to the given buffer at the given location. |
static int |
writeLEDouble(byte[] b,
int off,
double val)
Writes the given double to the given buffer at the given location in little endian format. |
static int |
writeLEInt(byte[] b,
int off,
int val)
Writes the given integer to the given buffer at the given location in little endian format. |
static int |
writeLELong(byte[] b,
int off,
long val)
Writes the given long to the given buffer at the given location in little endian format. |
static int |
writePoint(byte[] b,
int off,
ESRIPoint point)
Writes the given point to the given buffer at the given location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeUtils()
Method Detail |
---|
public static int readBEInt(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static int readLEInt(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static int readLEInt(BinaryBufferedFile in) throws java.io.IOException
in
- an input file
java.io.IOException
public static long readLELong(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the long resides
public static double readLEDouble(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the double resides
public static ESRIPoint readPoint(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static ESRIBoundingBox readBox(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static int writeBEInt(byte[] b, int off, int val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the integer to write
public static int writeLEInt(byte[] b, int off, int val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the integer to write
public static int writeLELong(byte[] b, int off, long val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the long to write
public static int writeLEDouble(byte[] b, int off, double val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the double to write
public static int writePoint(byte[] b, int off, ESRIPoint point)
b
- the data bufferoff
- the offset into the buffer where writing should occurpoint
- the point to write
public static int writeBox(byte[] b, int off, ESRIBoundingBox box)
b
- the data bufferoff
- the offset into the buffer where writing should occurbox
- the bounding box to write
public static java.lang.String getStringForType(int shapeType)
shapeType
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |