Encoding String to "modified UTF-8" for the DataInput
I would like to encode String value to the modified UTF-8 format bytes.
Something like
byte[] bytes = MagicEncoder.encode(str, "modified UTF-8");
DataInput input = new DataInputStream(new ByteArrayInputStream(bytes));
Each read*() method of the DataInput has to be able to properly read the
underlaying bytes.
No comments:
Post a Comment