CsvOptions
Inheritance: java.lang.Object, com.aspose.tasks.SimpleSaveOptions
public class CsvOptions extends SimpleSaveOptions
Allows to specify additional options when saving project to CSV.
Constructors
Constructor | Description |
---|---|
CsvOptions() | Initializes a new instance of the CsvOptions class which can be used to save project in CSV format. |
Methods
Method | Description |
---|---|
getDataCategory() | Gets a data category to be saved. |
getEncoding() | Gets an encoding to save CSV with. |
getIncludeHeaders() | Gets a value indicating whether to include headers or not (default value is TRUE). |
getTextDelimiter() | Gets a text delimiter. |
getView() | Gets a list of the view columns (GanttChartColumn) to save to XLSX format. |
setDataCategory(int value) | Sets a data category to be saved. |
setEncoding(Charset value) | Sets an encoding to save CSV with. |
setIncludeHeaders(boolean value) | Sets a value indicating whether to include headers or not (default value is TRUE). |
setTextDelimiter(int value) | Sets a text delimiter. |
setView(ProjectView value) | Sets a list of the view columns (GanttChartColumn) to save to XLSX format. |
CsvOptions()
public CsvOptions()
Initializes a new instance of the CsvOptions class which can be used to save project in CSV format.
getDataCategory()
public final int getDataCategory()
Gets a data category to be saved.
Returns: int - a data category to be saved.
getEncoding()
public final Charset getEncoding()
Gets an encoding to save CSV with.
Returns: java.nio.charset.Charset - an encoding to save CSV with.
getIncludeHeaders()
public final boolean getIncludeHeaders()
Gets a value indicating whether to include headers or not (default value is TRUE).
Returns: boolean - a value indicating whether to include headers or not (default value is TRUE).
getTextDelimiter()
public final int getTextDelimiter()
Gets a text delimiter.
Returns: int - a text delimiter.
getView()
public final ProjectView getView()
Gets a list of the view columns (GanttChartColumn) to save to XLSX format. If not set then default columns are saved.
Returns: ProjectView - a list of the view columns (GanttChartColumn) to save to XLSX format.
setDataCategory(int value)
public final void setDataCategory(int value)
Sets a data category to be saved.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a data category to be saved. |
setEncoding(Charset value)
public final void setEncoding(Charset value)
Sets an encoding to save CSV with.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.nio.charset.Charset | an encoding to save CSV with. |
setIncludeHeaders(boolean value)
public final void setIncludeHeaders(boolean value)
Sets a value indicating whether to include headers or not (default value is TRUE).
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether to include headers or not (default value is TRUE). |
setTextDelimiter(int value)
public final void setTextDelimiter(int value)
Sets a text delimiter.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a text delimiter. |
setView(ProjectView value)
public final void setView(ProjectView value)
Sets a list of the view columns (GanttChartColumn) to save to XLSX format. If not set then default columns are saved.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ProjectView | a list of the view columns (GanttChartColumn) to save to XLSX format. |