Package org.jlab.utils.data
Class DataUtils
java.lang.Object
org.jlab.utils.data.DataUtils
- Author:
- gavalian
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic bytegetByteFromInt(int data) static bytegetByteFromShort(short data) static intgetInteger(int data, int bitstart, int bitend) static intgetIntFromByte(byte data) static intgetIntFromShort(short data) static longgetLongFromInt(int data) static shortgetShortFromByte(byte data) static shortgetShortFromInt(int data) static void
-
Field Details
-
bitMap
-
-
Constructor Details
-
DataUtils
public DataUtils()
-
-
Method Details
-
createBitMap
-
printBitMap
public static void printBitMap() -
getInteger
public static int getInteger(int data, int bitstart, int bitend) -
getShortFromByte
public static short getShortFromByte(byte data) -
getIntFromShort
public static int getIntFromShort(short data) -
getIntFromByte
public static int getIntFromByte(byte data) -
getShortFromInt
public static short getShortFromInt(int data) -
getByteFromInt
public static byte getByteFromInt(int data) -
getByteFromShort
public static byte getByteFromShort(short data) -
getLongFromInt
public static long getLongFromInt(int data)
-