org.sourceforge.beanindex.util
Class IntegerCompressor
java.lang.Object
org.sourceforge.beanindex.util.IntegerCompressor
- public class IntegerCompressor
- extends java.lang.Object
This class converts int to zipped byte array
from zipped byte array converts them back to int
- Author:
- Sakthivel Muthusamy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerCompressor
public IntegerCompressor()
getBytes
public byte[] getBytes(int value)
- Parameters:
value -
- Returns:
- byte[]
getInt
public int getInt(byte[] byteBuff)
- Parameters:
byteBuff -
- Returns:
- int
convert
public int[] convert(byte[] data)
- Parameters:
data -
- Returns:
- int[]
convertIntToVint
public byte[] convertIntToVint(int[] intArr)
- Parameters:
intArr -
- Returns:
- byte[]