de.javawi.jstun.util
Class Utility
java.lang.Object
de.javawi.jstun.util.Utility
public class Utility
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utility
public Utility()
integerToOneByte
public static final byte integerToOneByte(int value)
throws UtilityException
- Throws:
UtilityException
integerToTwoBytes
public static final byte[] integerToTwoBytes(int value)
throws UtilityException
- Throws:
UtilityException
integerToFourBytes
public static final byte[] integerToFourBytes(int value)
throws UtilityException
- Throws:
UtilityException
oneByteToInteger
public static final int oneByteToInteger(byte value)
throws UtilityException
- Throws:
UtilityException
twoBytesToInteger
public static final int twoBytesToInteger(byte[] value)
throws UtilityException
- Throws:
UtilityException
fourBytesToLong
public static final long fourBytesToLong(byte[] value)
throws UtilityException
- Throws:
UtilityException