com.rational.test.ft.datapool
Class DatapoolUtilities
java.lang.Object
com.rational.test.ft.datapool.DatapoolUtilities
- public class DatapoolUtilities
- extends java.lang.Object
- Since:
- RFT2.0
Method Summary |
static IDatapool |
loadCSV(java.io.File csvFile)
Load a file in CSV file format and perse into a standard datapool
form. |
static IDatapool |
loadCSV(java.io.File csvFile,
java.lang.String separator,
boolean firstRowIsHeaders)
Load a file in CSV file format and perse into a standard datapool
form. |
static void |
storeCSV(IDatapool datapool,
java.io.File csvFile,
java.lang.String separator,
boolean firstRowIsHeaders)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatapoolUtilities
public DatapoolUtilities()
loadCSV
public static IDatapool loadCSV(java.io.File csvFile)
- Load a file in CSV file format and perse into a standard datapool
form.
- Parameters:
csvFile
- The file name of a file in CSV format. If the
this name is null
or the file it
represents does not exist an appropriate exception
is thrown.- Since:
- RFT2.0
- See Also:
storeCSV(IDatapool,File,String,boolean)
,
loadCSV(File,String,boolean)
loadCSV
public static IDatapool loadCSV(java.io.File csvFile,
java.lang.String separator,
boolean firstRowIsHeaders)
- Load a file in CSV file format and perse into a standard datapool
form.
- Parameters:
csvFile
- The file name of a file in CSV format. If the
this name is null
or the file it
represents does not exist an appropriate exception
is thrown.separator
- The cell separator used in the file being parsed.
If null
then a single character comma
is used.firstRowIsHeaders
- Flag to parser to use the first row of values
as the column headers.- Since:
- RFT2.0
- See Also:
storeCSV(IDatapool,File,String,boolean)
,
loadCSV(File)
storeCSV
public static void storeCSV(IDatapool datapool,
java.io.File csvFile,
java.lang.String separator,
boolean firstRowIsHeaders)
- Since:
- RFT2.0
- See Also:
loadCSV(File)
,
loadCSV(File,String,boolean)