Package org.apache.jmeter.functions
Class FileWrapper
- java.lang.Object
-
- org.apache.jmeter.functions.FileWrapper
-
public final class FileWrapper extends Object
This class wraps the FileRowColContainer for use across multiple threads. It does this by maintaining a list of open files, keyed by file name (or alias, if used). A list of open files is also maintained for each thread, together with the current line number.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearAll()static voidendRow(String file)static StringgetColumn(String file, int col)static intgetCurrentRow(String file)Gets the current row number (mainly for error reporting)static voidopen(String file, String alias)
-
-
-
Method Detail
-
endRow
public static void endRow(String file)
-
getCurrentRow
public static int getCurrentRow(String file)
Gets the current row number (mainly for error reporting)- Parameters:
file- name of the file for which the row number is asked- Returns:
- the current row number for this thread, or
-1iffilewas not opened yet
-
clearAll
public static void clearAll()
-
-