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 voidcopyFile(InputStream from, File to)static StringreadFile(File f)static StringreadFile(InputStream is)static StringstreamToString(InputStream is)static voidwriteFile(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
-
-