|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.services.FileServer
Method Summary | |
void |
closeFile(String name)
|
void |
closeFiles()
|
protected boolean |
filesOpen()
|
String |
getBaseDir()
|
static FileServer |
getFileServer()
|
File |
getRandomFile(String basedir,
String[] extensions)
Method will get a random file in a base directory TODO hey, not sure this method belongs here. |
String |
readLine(String filename)
Get the next line of the named file, recycle by default. |
String |
readLine(String filename,
boolean recycle)
Get the next line of the named file. |
void |
reserveFile(String filename)
Creates an association between a filename and a File inputOutputObject, and stores it for later use - unless it is already stored. |
void |
reserveFile(String filename,
String charsetName)
Creates an association between a filename and a File inputOutputObject, and stores it for later use - unless it is already stored. |
void |
resetBase()
|
void |
setBasedir(String basedir)
|
void |
write(String filename,
String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FileServer getFileServer()
public void resetBase() throws IOException
IOException
public void setBasedir(String basedir) throws IOException
IOException
public String getBaseDir()
public void reserveFile(String filename)
filename
- - relative (to base) or absolute file namepublic void reserveFile(String filename, String charsetName)
filename
- - relative (to base) or absolute file namecharsetName
- - the character set encoding to use for the filepublic String readLine(String filename) throws IOException
filename
-
IOException
public String readLine(String filename, boolean recycle) throws IOException
filename
- recycle
- - should file be restarted at EOF?
IOException
public void write(String filename, String value) throws IOException
IOException
public void closeFiles() throws IOException
IOException
public void closeFile(String name) throws IOException
name
-
IOException
protected boolean filesOpen()
public File getRandomFile(String basedir, String[] extensions)
basedir
-
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |