Package io.keikai.axyra.sheets.io
Class CsvOptions
java.lang.Object
io.keikai.axyra.sheets.io.CsvOptions
Options for
Workbook.saveCsv(path, options). The defaults write
what a plain save("x.csv") writes, which is what Excel's Save As CSV
writes: the active sheet, comma-separated, as display text.
wb.saveCsv(path, CsvOptions.create().sheet("Payments").values(CsvOptions.Values.RAW));
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat a numeric cell is written as. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CsvOptionscreate()chardelimiter(char delimiter) The field separator (default','); one ASCII character other than a quote or line break.sheet(int index) The sheet to write, by 0-based index (default: the active sheet).The sheet to write, by name (default: the active sheet).intThe sheet index, or -1 for "the active sheet" / a sheet named bysheetName().The sheet name, ornullwhen not chosen by name.booleanutf8Bom()utf8Bom(boolean bom) Whether to start the file with a UTF-8 byte-order mark, as Excel's "CSV UTF-8" does (default false).values()values(CsvOptions.Values values) Display text (default) or stored values.
-
Constructor Details
-
CsvOptions
public CsvOptions()
-
-
Method Details
-
create
-
sheet
The sheet to write, by 0-based index (default: the active sheet). -
sheet
The sheet to write, by name (default: the active sheet). -
delimiter
The field separator (default','); one ASCII character other than a quote or line break. -
values
Display text (default) or stored values. -
utf8Bom
Whether to start the file with a UTF-8 byte-order mark, as Excel's "CSV UTF-8" does (default false). -
sheetIndex
public int sheetIndex()The sheet index, or -1 for "the active sheet" / a sheet named bysheetName(). -
sheetName
The sheet name, ornullwhen not chosen by name. -
delimiter
public char delimiter() -
values
-
utf8Bom
public boolean utf8Bom()
-