de.uni_leipzig.asv.coocc
Class Converter
java.lang.Object
de.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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MASK
public static final int MASK
- See Also:
- Constant Field Values
Converter
protected Converter()
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)