|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.colloquial.arithcode.Converter
Package utility class for converting integers to bytes and back again in a uniform manner. Could put this in ByteSet.
| Constructor Summary | |
(package private) |
Converter()
|
| Method Summary | |
(package private) static int |
byteToInteger(byte b)
Returns integer code for the specified byte. |
(package private) static byte |
integerToByte(int i)
Returns byte coded by the specified integer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
Converter()
| Method Detail |
static byte integerToByte(int i)
i - Integer to conver to a byte.
static int byteToInteger(byte b)
b - Byte to code as an integer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||