org.sourceforge.beanindex.util
Class IntegerCompressor

java.lang.Object
  extended byorg.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

Constructor Summary
IntegerCompressor()
           
 
Method Summary
 int[] convert(byte[] data)
           
 byte[] convertIntToVint(int[] intArr)
           
 byte[] getBytes(int value)
           
 int getInt(byte[] byteBuff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerCompressor

public IntegerCompressor()
Method Detail

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[]