public final class AsciiFuncs
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
asciiString(byte[] buf)
Convert to ASCII or return null if not compatible.
|
static java.lang.String |
asciiString(byte[] buf,
int start,
int len)
Convert to ASCII or return null if not compatible.
|
static byte[] |
getBytes(java.lang.String in)
Convert an ASCII string to bytes.
|
static boolean |
isWhitespace(char character) |
public static java.lang.String asciiString(byte[] buf)
buf - the bytes representing a stringpublic static java.lang.String asciiString(byte[] buf,
int start,
int len)
buf - buffer to get the string bytes fromstart - the position where the string startslen - the length of the stringpublic static byte[] getBytes(java.lang.String in)
in - the string to convertpublic static boolean isWhitespace(char character)
character - the charater to check