I have to implement a string encoder in java but i cant understand in which base/unicode is going to be.
Those are a couple of things that the encoder must be able to do:
0xFF Set N equal to the next byte of the input and output N (called an escape action)
0xFE Set N equal to the next byte of the input and output the Nth phrase in the dictionary (called a look
0xFD Do nothing
0xF0 Do nothing
0xEF Repeat the next instruction 0xF (that is 15) times
0xEE Repeat the next instruction 0xE (that is 14) times
[the encoder will accept files/txt and will do the appropriate encoding]
can anyone tell me how's that thing can be implemented ????
actually i found something online but i don't know if its doing that appropriate job [its in base32]
thanks in advance!