public interface CsvFileOperationHandler
| Modifier and Type | Method and Description |
|---|---|
File |
createTmpFile(String prefix,
String filename)
Creates an empty file in the default temporary-file directory, using
the given prefix and filename to generate its name.
|
boolean |
writeToCsvFile(File file,
String encoding,
Map<Integer,String> data)
Writes a single line to the writer.
|
File createTmpFile(String prefix, String filename)
prefix - - The prefix string to be used in generating the file's name; must be at least three characters long.filename - - The filename string to be used in generating the file's name; may be null, in which case the
prefix ".tmp" will be used.boolean writeToCsvFile(File file, String encoding, Map<Integer,String> data)
CSVReader.parseLine(String) how the map looks like. The line will
be quoted in the textseparator char. Map{
{ 0:Integer, Field_1:String },
{ 1:Integer, Field_2:String },
...
{ n:Integer, Field_n:String }
}
file - - An abstract pathname denoting the CSV file to write to.encoding - - The encoding to use for the CSV file.data - - The line of data which will be written.Copyright © 2017 SAP SE. All Rights Reserved.