|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.vpf.util.DataUtils
Class DataUtils.java is responsible for a bunch of miscellaneous operations for reading and converting data
Created: Wed Jan 29 10:06:37 2003
Field Summary |
Constructor Summary | |
DataUtils()
|
Method Summary | |
static void |
copyArrays(byte[] dest,
byte[] source,
int fromIdx)
Describe copyArrays method here. |
static java.lang.Object |
decodeData(byte[] bytes,
char type)
Describe decodeData method here. |
static double |
decodeDouble(byte[] bytes)
Describe decodeDouble method here. |
static float |
decodeFloat(byte[] bytes)
Describe decodeFloat method here. |
static int |
decodeInt(byte[] bytes)
Describe decodeInt method here. |
static short |
decodeShort(byte[] bytes)
Describe decodeShort method here. |
static int |
getDataTypeSize(char type)
Describe getDataTypeSize method here. |
static boolean |
isNumeric(char type)
Describe isNumeric method here. |
static byte[] |
toBigEndian(byte[] source)
Describe toBigEndian method here. |
static int |
unsigByteToInt(byte b)
Describe unsigByteToInt method here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataUtils()
Method Detail |
public static byte[] toBigEndian(byte[] source)
toBigEndian
method here.
source
- a byte[]
value
byte[]
valuepublic static java.lang.Object decodeData(byte[] bytes, char type)
decodeData
method here.
bytes
- a byte[]
valuetype
- a char
value
Object
valuepublic static void copyArrays(byte[] dest, byte[] source, int fromIdx)
copyArrays
method here.
dest
- a byte[]
valuesource
- a byte[]
valuefromIdx
- an int
valuepublic static short decodeShort(byte[] bytes)
decodeShort
method here.
bytes
- a byte[]
value
short
valuepublic static int decodeInt(byte[] bytes)
decodeInt
method here.
bytes
- a byte[]
value
int
valuepublic static float decodeFloat(byte[] bytes)
decodeFloat
method here.
bytes
- a byte[]
value
float
valuepublic static double decodeDouble(byte[] bytes)
decodeDouble
method here.
bytes
- a byte[]
value
double
valuepublic static int unsigByteToInt(byte b)
unsigByteToInt
method here.
b
- a byte
value
int
valuepublic static int getDataTypeSize(char type)
getDataTypeSize
method here.
type
- a char
value
int
valuepublic static boolean isNumeric(char type)
isNumeric
method here.
type
- a char
value
boolean
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |