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 voidcopyFile(InputStream from, File to)
           
static StringreadFile(File f)
           
static StringreadFile(InputStream is)
           
static StringstreamToString(InputStream is)
           
static voidwriteFile(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 © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14