|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.util.BytesConverter
public class BytesConverter
ByteConverter converts primitive data type to bytes.
The byte order is consider as BIG_ENDIAN
Constructor Summary | |
---|---|
BytesConverter()
|
Method Summary | |
---|---|
static byte[] |
getBytes(java.util.Date value)
Returns Date value as bytes |
static byte[] |
getBytes(double value)
Returns double value as bytes |
static byte[] |
getBytes(float value)
Returns float value as bytes |
static byte[] |
getBytes(int value)
Returns int value as bytes |
static byte[] |
getBytes(long value)
Returns long value as bytes |
static byte[] |
getBytes(short value)
Returns short value as bytes |
static byte[] |
getBytes(java.lang.String value)
Returns String value as bytes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BytesConverter()
Method Detail |
---|
public static byte[] getBytes(java.util.Date value)
public static byte[] getBytes(double value)
public static byte[] getBytes(float value)
public static byte[] getBytes(int value)
public static byte[] getBytes(long value)
public static byte[] getBytes(short value)
public static byte[] getBytes(java.lang.String value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |