Method Summary |
|
public static void | close(InputStream s) Close the given stream if the stream is not null. |
public static void | close(Reader s) Close the given stream if the stream is not null. |
public static void | close(OutputStream s) Close the given stream if the stream is not null. |
public static void | close(Writer s) Close the given stream if the stream is not null. |
public static int | copy(Reader in, Writer out) Copy the contents of the given Reader to the given Writer. |
public static String | copyToString(Reader in) Copy the contents of the given Reader into a String. |
public static String | getStringFromReader(Reader in) Read the data from the given reader and return it is a single String. |
public static byte[] | readData(File file) Read the data from the given file into a byte array and return
the array. |
public static byte[] | readData(FileObject file) Read the data from the given file into a byte array and return
the array. |
public static void | writeData(File file, byte[] data) Write the byte array to the given file. |
public static void | writeData(FileObject file, byte[] data) Write the byte array to the given file. |