Is there an equivalent of Python's repr() function (prepares data for the screen) in
Java? Specifically, I'd like to print out byte arrays, but only if they contain valid characters (i.e., I don't want a bunch of ASCII gobbledygook messing up my terminal).
Thanks,
Alex Kirk