Overview
API Versioning
Deprecated
dw.io
Class CSVStreamWriter
Object
dw.io.CSVStreamWriter
The class writes a CSV file.
Note:
when this class is used with sensitive data, be careful in persisting sensitive information to disk.
Constructor Summary
CSVStreamWriter
(writer :
Writer
)
Create a new CSVStreamWriter with a ',' as separator and '"' as quote character.
CSVStreamWriter
(writer :
Writer
, separator :
String
)
Create a new CSVStreamWriter with the specified separator and '"' as quote character.
CSVStreamWriter
(writer :
Writer
, separator :
String
, quote :
String
)
Create a new CSVStreamWriter with the specified separator and the specified quote character.
Method Summary
close
() : void
Closes the stream.
writeNext
(line :
String
...) : void
Write a single line to the CSV file.
Methods inherited from class
Object
hasOwnProperty
,
isPrototypeOf
,
propertyIsEnumerable
,
toLocaleString
,
toString
,
valueOf
Constructor Detail
CSVStreamWriter
public
CSVStreamWriter
(writer :
Writer
)
Create a new CSVStreamWriter with a ',' as separator and '"' as quote character.
Parameters:
writer
-
the writer to use.
CSVStreamWriter
public
CSVStreamWriter
(writer :
Writer
, separator :
String
)
Create a new CSVStreamWriter with the specified separator and '"' as quote character.
Parameters:
writer
-
the writer to use.
separator
-
the separator to use.
CSVStreamWriter
public
CSVStreamWriter
(writer :
Writer
, separator :
String
, quote :
String
)
Create a new CSVStreamWriter with the specified separator and the specified quote character.
Parameters:
writer
-
the writer to use.
separator
-
the separator to use.
quote
-
the quote to use.
Method Detail
close
close
() : void
Closes the stream.
writeNext
writeNext
(line :
String
...) : void
Write a single line to the CSV file.
Parameters:
line
-
an array of strings.
copyright © 2019 salesforce.com, inc. All rights reserved. 19.2