com.lazerycode.jmeter.analyzer.util
public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static File |
initializeFile(File dir,
String name,
String resultDataFileRelativePath)
Create and return file of given name in given directory
|
static void |
readResources(Properties remoteResources,
File targetDir,
String resultDataFileRelativePath,
Collection<AggregatedResponses> testResults)
Reads in a set of remote resources
|
static String |
urlEncode(String name)
URLEncode given String
|
public static String urlEncode(String name) throws UnsupportedEncodingException
name - string to encodeUnsupportedEncodingExceptionURLEncoder.encode(String, String)public static File initializeFile(File dir, String name, String resultDataFileRelativePath) throws IOException
dir - directory to create the file inname - file nameresultDataFileRelativePath - optional relative path below dir, if AnalyzeMojo.preserveDirectories is trueIOExceptionpublic static void readResources(Properties remoteResources, File targetDir, String resultDataFileRelativePath, Collection<AggregatedResponses> testResults) throws IOException
remoteResources - The resources as mapping URL to file nametargetDir - The dir to store the resourcesIOException - If reading failsCopyright © 2013. All Rights Reserved.