| java.lang.Object com.lutris.util.BytesToString
BytesToString | public class BytesToString (Code) | | 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.
author: Andy John |
Method Summary | |
public static String | conv(byte[] b) Converts the array of bytes to a string. | public static String | conv(byte[] b, int len) Converts the array of bytes to a string. |
conv | public static String conv(byte[] b)(Code) | | Converts the array of bytes to a string. Non-ascii characters
are converted to ".".
Parameters: b - The array of bytes to convert. The bytes converted into a string. |
conv | public static String conv(byte[] b, int len)(Code) | | Converts the array of bytes to a string. Non-ascii characters
are converted to ".". Only the first len bytes are used.
Parameters: b - The array of bytes to convert. Parameters: len - Only uses bytes b[0]..b[len-1]. The bytes converted into a string. |
|
|