Package edu.pitt.isp.sverchkov.data
Class DataTools
java.lang.Object
edu.pitt.isp.sverchkov.data.DataTools
Data tools.
- Author:
- YUS24
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
NEWLINE
- 
DELIMITER_REGEX- See Also:
 
- 
DELIMITER- See Also:
 
 
- 
- 
Constructor Details- 
DataToolspublic DataTools()
 
- 
- 
Method Details- 
dataTableFromFileReads a data table from a file.- Parameters:
- file- The file to read from
- Returns:
- The data table
- Throws:
- FileNotFoundException- if the file is not found
 
- 
saveCSVpublic static <Attribute,Value> void saveCSV(DataTable<Attribute, Value> data, File dest, boolean headers) throws IOExceptionSaves a data table to a file.- Parameters:
- data- The data table to save
- dest- The file to save to
- headers- Whether to include headers
- Throws:
- IOException- if something goes wrong
 
 
-