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
IOException
public static String readFile(InputStream is) throws IOException
IOException
public static void writeFile(String string, File f) throws IOException
IOException
public static void copyFile(InputStream from, File to) throws IOException
IOException
public static String streamToString(InputStream is) throws IOException
IOException
Copyright © 2015. All rights reserved.