Package de.javawi.jstun.util
Class Utility
java.lang.Object
de.javawi.jstun.util.Utility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final long
fourBytesToLong
(byte[] value) static final byte[]
integerToFourBytes
(int value) static final byte
integerToOneByte
(int value) static final byte[]
integerToTwoBytes
(int value) static final int
oneByteToInteger
(byte value) static final int
twoBytesToInteger
(byte[] value)
-
Constructor Details
-
Utility
public Utility()
-
-
Method Details
-
integerToOneByte
- Throws:
UtilityException
-
integerToTwoBytes
- Throws:
UtilityException
-
integerToFourBytes
- Throws:
UtilityException
-
oneByteToInteger
- Throws:
UtilityException
-
twoBytesToInteger
- Throws:
UtilityException
-
fourBytesToLong
- Throws:
UtilityException
-