I'm working on a parser for a binary file format. I'll be getting ints from the
Java reader that represent the values of each byte in the file being parsed. Many of these bytes represent ASCII text. I'm looking for the best way to:
[1] Convert a single int representing the value of a byte read from the binary file into a char or
String that represents the corresponding ASCII value.
[2] Convert a group of ints representing the value of a series of bytes read from the binary file into a single String.
I think I can do #1 using the toString() method of the Byte class. Is this the best way? How would I accomplish number 2?
Thanks for the help.
Landon