I want to view a byte array in the Eclipse (Helios Release, build id: 20100617-1415) Java debugger as a char array? Is that possible? How?
For example, I want to display this:
...as: '\0', '0', 'G', '\22', etc.
I want to view a byte array in the Eclipse (Helios Release, build id: 20100617-1415) Java debugger as a char array? Is that possible? How?
For example, I want to display this:
...as: '\0', '0', 'G', '\22', etc.
new String(aBytes).toCharArray();
Caveat - it will use the system dependent encoding - which may well screw up your output if it's not in the encoding you think it is. If you know the encoding you can use:
new String(aBytes, java.nio.charset.Charset.forName("UTF-8")).toCharArray();