public class EventTypeFactory
extends java.lang.Object
Constructor and Description |
---|
EventTypeFactory() |
Modifier and Type | Method and Description |
---|---|
static float |
bytes2float(byte[] bytes)
4 digit of byte array to float number
|
static int |
bytes2int(byte[] b) |
static EventType |
createEventType(byte[] bytes) |
static byte[] |
float2bytes(float num)
Float number to 4 digit of byte array
|
static byte[] |
getBytes(int value)
Returns the bytes that are associated with an integer value.
|
static int |
getInt(byte[] data)
Given a sequence of bytes, this method returns the int value associated
with the sequence of bytes.
|
static byte[] |
int2bytes(int num) |
public static EventType createEventType(byte[] bytes)
public static int bytes2int(byte[] b)
public static byte[] int2bytes(int num)
public static byte[] getBytes(int value)
value
- The integer for which we are seeking an equivalent byte stream
representation.public static int getInt(byte[] data)
data
- The sequence of bytes representing a int value.public static byte[] float2bytes(float num)
num
- Float numberpublic static float bytes2float(byte[] bytes)
bytes
- Byte array containing 4 digit