public final class AsciiFuncs extends Object
Modifier and Type | Method and Description |
---|---|
static String |
asciiString(byte[] buf)
Convert to ASCII or return null if not compatible.
|
static String |
asciiString(byte[] buf,
int start,
int len)
Convert to ASCII or return null if not compatible.
|
static byte[] |
getBytes(String in)
Convert an ASCII string to bytes.
|
static boolean |
isWhitespace(char character) |
public static String asciiString(byte[] buf)
buf
- the bytes representing a stringpublic static 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(String in)
in
- the string to convertpublic static boolean isWhitespace(char character)
character
- the charater to checkCopyright © 1996–2016 nom-tam-fits. All rights reserved.