org.testng.reporters
Class Files

java.lang.Object
  extended by org.testng.reporters.Files

public class Files
extends Object


Constructor Summary
Files()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Files

public Files()
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


Copyright © 2015. All Rights Reserved.