|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rometools.propono.utils.Utilities
public class Utilities
Utilities for file I/O and string manipulation.
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | |
---|---|
static void |
copyInputToOutput(InputStream input,
OutputStream output)
Copy input stream to output stream using 8K buffer. |
static byte[] |
getBytesFromFile(File file)
Returns the contents of the file in a byte array (from JavaAlmanac). |
static String |
replaceNonAlphanumeric(String str,
char subst)
Replaces occurences of non-alphanumeric characters with a supplied char. |
static String |
streamToString(InputStream is)
Read input from stream and into string. |
static String |
stringArrayToString(String[] stringArray,
String delim)
Convert string array to string. |
static String[] |
stringToStringArray(String instr,
String delim)
Convert string to string array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
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
NoSuchElementException
NumberFormatException
public static String stringArrayToString(String[] stringArray, String delim)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |