|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.parser.acl.bitefficient.BinRep
Conversion between ASCII numbers and bit-efficient numbers.
The coding is based on following rules:
'0' = 0001 (0x01)
'1' = 0010 (0x02)
'2' = 0011 (0x03)
'3' = 0100 (0x04)
'4' = 0101 (0x05)
'5' = 0110 (0x06)
'6' = 0111 (0x07)
'7' = 1000 (0x08)
'8' = 1001 (0x09)
'9' = 1010 (0x0a)
'+' = 1100 (0x0c)
'e' = 1101 (0x0d)
'-' = 1110 (0x0e)
'.' = 1111 (0x0f)
Constructor Summary | |
BinRep()
|
Method Summary | |
protected static byte |
decode(int i)
Converts bit-efficient number to ASCII. |
protected static byte |
encode(int i)
Converts one ASCII number to bit-efficient representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinRep()
Method Detail |
protected static byte encode(int i)
i
- ASCII number to convertprotected static byte decode(int i)
i
- bit-efficient number to convert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |