Package org.testng.reporters
Class Files
- java.lang.Object
-
- org.testng.reporters.Files
-
public class Files extends Object
-
-
Constructor Summary
Constructors Constructor Description Files()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
readFile
public static String readFile(File f) throws IOException
- Throws:
IOException
-
readFile
public static String readFile(InputStream is) throws IOException
- Throws:
IOException
-
writeFile
public static void writeFile(String string, File f) throws IOException
- Throws:
IOException
-
copyFile
public static void copyFile(InputStream from, File to) throws IOException
- Throws:
IOException
-
streamToString
public static String streamToString(InputStream is) throws IOException
- Throws:
IOException
-
-