@Deprecated public final class Utilities extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copyInputToOutput(InputStream input,
OutputStream output)
Deprecated.
Copy input stream to output stream using 8K buffer.
|
static byte[] |
getBytesFromFile(File file)
Deprecated.
Returns the contents of the file in a byte array (from JavaAlmanac).
|
static String |
replaceNonAlphanumeric(String str,
char subst)
Deprecated.
Replaces occurences of non-alphanumeric characters with a supplied char.
|
static String |
streamToString(InputStream is)
Deprecated.
Read input from stream and into string.
|
static String |
stringArrayToString(String[] stringArray,
String delim)
Deprecated.
Convert string array to string.
|
static String[] |
stringToStringArray(String instr,
String delim)
Deprecated.
Convert string to string array.
|
public static byte[] getBytesFromFile(File file) throws IOException
IOException
public static String streamToString(InputStream is) throws IOException
IOException
public static void copyInputToOutput(InputStream input, OutputStream output) throws IOException
IOException
public static String replaceNonAlphanumeric(String str, char subst)
public static String[] stringToStringArray(String instr, String delim) throws NoSuchElementException, NumberFormatException
Copyright © 2020. All rights reserved.