public class Util
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASCII_RECORD_SEPARATOR |
static java.lang.String |
LOWERCASE_ALPHA_NUM_CHARACTERS |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
concatenateByteArrays(byte[] first,
byte[] second)
Creates a new byte array long enough to hold both byte arrays, then fills
them.
|
static byte[] |
concatenateByteArrays(byte[] first,
byte[] second,
byte[] third) |
static java.lang.String |
getRandomString(int stringLength,
java.lang.String charSet)
Get a random string of characters of specified length from a specified character set.
|
static boolean |
isGoodString(java.lang.String string) |
static boolean |
isPrefixOf(java.lang.String prefix,
java.lang.String target)
Is 'prefix' an initial substring of 'target'?
|
static void |
sortFilesByName(java.io.File[] files)
Sort an array of File objects, by filename
|
static void |
updateTextView(TextView textView,
java.lang.String msg) |
public static java.lang.String ASCII_RECORD_SEPARATOR
public static final java.lang.String LOWERCASE_ALPHA_NUM_CHARACTERS
public static java.lang.String getRandomString(int stringLength,
java.lang.String charSet)
stringLength - how many characters to randomly choosecharSet - which characters to choose from, given as a stringpublic static void sortFilesByName(java.io.File[] files)
files - array of File objectspublic static void updateTextView(TextView textView,
java.lang.String msg)
public static byte[] concatenateByteArrays(byte[] first,
byte[] second)
first - byte arraysecond - byte arraypublic static byte[] concatenateByteArrays(byte[] first,
byte[] second,
byte[] third)
public static boolean isPrefixOf(java.lang.String prefix,
java.lang.String target)
prefix - the string prefix to comparetarget - the target to compare the prefix against.public static boolean isGoodString(java.lang.String string)