de.uni_leipzig.asv.coocc
Class Converter

java.lang.Object
  extended byde.uni_leipzig.asv.coocc.Converter

public class Converter
extends Object

This class converts bytes to Integers and vice versa, the same for chars.


Field Summary
static int MASK
           
 
Constructor Summary
protected Converter()
           
 
Method Summary
static int bytesToInt(byte[] b)
           
static int bytesToInt(byte[] b, int offset)
           
static Integer bytesToInteger(byte[] b)
           
static Integer bytesToInteger(byte[] b, int offset)
           
static byte[] integerToBytes(Integer a)
           
static byte[] intToBytes(int a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MASK

public static final int MASK
See Also:
Constant Field Values
Constructor Detail

Converter

protected Converter()
Method Detail

intToBytes

public static byte[] intToBytes(int a)

integerToBytes

public static byte[] integerToBytes(Integer a)

bytesToInt

public static int bytesToInt(byte[] b,
                             int offset)
Parameters:
b -
offset -
Returns:

bytesToInteger

public static Integer bytesToInteger(byte[] b,
                                     int offset)

bytesToInt

public static int bytesToInt(byte[] b)

bytesToInteger

public static Integer bytesToInteger(byte[] b)