@Deprecated
public final class Utilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.util.regex.Pattern |
absoluteURIPattern
Deprecated.
|
private static java.lang.String |
LS
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
private |
Utilities()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
copyInputToOutput(java.io.InputStream input,
java.io.OutputStream output)
Deprecated.
Copy input stream to output stream using 8K buffer.
|
static byte[] |
getBytesFromFile(java.io.File file)
Deprecated.
Returns the contents of the file in a byte array (from JavaAlmanac).
|
static java.lang.String |
replaceNonAlphanumeric(java.lang.String str,
char subst)
Deprecated.
Replaces occurences of non-alphanumeric characters with a supplied char.
|
static java.lang.String |
streamToString(java.io.InputStream is)
Deprecated.
Read input from stream and into string.
|
static java.lang.String |
stringArrayToString(java.lang.String[] stringArray,
java.lang.String delim)
Deprecated.
Convert string array to string.
|
static java.lang.String[] |
stringToStringArray(java.lang.String instr,
java.lang.String delim)
Deprecated.
Convert string to string array.
|
private static final java.lang.String LS
static java.util.regex.Pattern absoluteURIPattern
public static byte[] getBytesFromFile(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String streamToString(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic static void copyInputToOutput(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String replaceNonAlphanumeric(java.lang.String str,
char subst)
public static java.lang.String[] stringToStringArray(java.lang.String instr,
java.lang.String delim)
throws java.util.NoSuchElementException,
java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionpublic static java.lang.String stringArrayToString(java.lang.String[] stringArray,
java.lang.String delim)