org.testng.reporters
Class Files
java.lang.Object
org.testng.reporters.Files
public class Files
- extends Object
Constructor Summary |
Files()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Files
public Files()
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
Copyright © 2015. All Rights Reserved.