|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.util.BytesToString
public class BytesToString
This class has static methods which convert arrays of bytes to a strings. It remaps non-ascii bytes to ".". One use for this class is to convert raw data read in from a file or the net to a human-readable form, probably for debugging.
Constructor Summary | |
---|---|
BytesToString()
|
Method Summary | |
---|---|
static java.lang.String |
conv(byte[] b)
Converts the array of bytes to a string. |
static java.lang.String |
conv(byte[] b,
int len)
Converts the array of bytes to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BytesToString()
Method Detail |
---|
public static java.lang.String conv(byte[] b)
b
- The array of bytes to convert.
public static java.lang.String conv(byte[] b, int len)
b
- The array of bytes to convert.len
- Only uses bytes b[0]..b[len-1].
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |