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

ConstructorDescription
CsvOptions()Initializes a new instance of the CsvOptions class which can be used to save project in CSV format.

Methods

MethodDescription
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:

ParameterTypeDescription
valueinta data category to be saved.

setEncoding(Charset value)

public final void setEncoding(Charset value)

Sets an encoding to save CSV with.

Parameters:

ParameterTypeDescription
valuejava.nio.charset.Charsetan 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:

ParameterTypeDescription
valuebooleana 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:

ParameterTypeDescription
valueinta 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:

ParameterTypeDescription
valueProjectViewa list of the view columns (GanttChartColumn) to save to XLSX format.