Package org.jlab.utils.data
Class DataUtils
java.lang.Object
org.jlab.utils.data.DataUtils
- Author:
- gavalian
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
DataUtilspublic DataUtils()
 
- 
- 
Method Details- 
createBitMap
- 
printBitMappublic static void printBitMap()
- 
getIntegerpublic static int getInteger(int data, int bitstart, int bitend) 
- 
getShortFromBytepublic static short getShortFromByte(byte data) 
- 
getIntFromShortpublic static int getIntFromShort(short data) 
- 
getIntFromBytepublic static int getIntFromByte(byte data) 
- 
getShortFromIntpublic static short getShortFromInt(int data) 
- 
getByteFromIntpublic static byte getByteFromInt(int data) 
- 
getByteFromShortpublic static byte getByteFromShort(short data) 
- 
getLongFromIntpublic static long getLongFromInt(int data) 
 
-