|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.collab.util.Convert
public class Convert
Conversion methods for primitive types.
Constructor Summary | |
---|---|
Convert()
|
Method Summary | |
---|---|
static byte[] |
getBytesFromDouble(double d)
Gets an array of bytes from a double. |
static byte[] |
getBytesFromFloat(float f)
Gets an array of bytes from a float. |
static byte[] |
getBytesFromInt(int iInt)
Get an array of bytes from a int. |
static byte[] |
getBytesFromLong(long lLong)
Get an array of bytes from a long. |
static byte[] |
getBytesFromShort(short sShort)
Get an array of bytes from a int. |
double |
getDoubleFromBytes(byte[] bytes)
Gets a double from an array of bytes. |
float |
getFloatFromBytes(byte[] bytes)
Gets a float from an array of bytes. |
static int |
getIntFromBytes(byte[] byteArray)
Get a int from an array of bytes; |
static long |
getLongFromBytes(byte[] byteArray)
Get a long from an array of bytes; |
static short |
getShortFromBytes(byte[] byteArray)
Get a short from an array of bytes; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Convert()
Method Detail |
---|
public static long getLongFromBytes(byte[] byteArray)
array
- the array of bytes (not null
)
public static byte[] getBytesFromLong(long lLong)
lLong
- the long
null
)public static int getIntFromBytes(byte[] byteArray)
array
- the array of bytes (not null
)
public static byte[] getBytesFromInt(int iInt)
iInt
- the int
null
)public static short getShortFromBytes(byte[] byteArray)
array
- the array of bytes (not null
)
public static byte[] getBytesFromShort(short sShort)
iInt
- the int
null
)public static byte[] getBytesFromDouble(double d)
d
- the double
public double getDoubleFromBytes(byte[] bytes)
bytes
- the bytes
public static byte[] getBytesFromFloat(float f)
f
- the float
public float getFloatFromBytes(byte[] bytes)
bytes
- the bytes
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |