public class Files extends Object
| Constructor and Description |
|---|
Files() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(InputStream from,
File to) |
static String |
readFile(File f) |
static String |
readFile(InputStream is) |
static String |
streamToString(InputStream is) |
static void |
writeFile(String string,
File f) |
public static String readFile(File f) throws IOException
IOExceptionpublic static String readFile(InputStream is) throws IOException
IOExceptionpublic static void writeFile(String string, File f) throws IOException
IOExceptionpublic static void copyFile(InputStream from, File to) throws IOException
IOExceptionpublic static String streamToString(InputStream is) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.