public class DataExportConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DataExportConfiguration.QuotingStrategy
Enumerates the quoting strategies for text-based output file formats such
as CSV.
|
Constructor and Description |
---|
DataExportConfiguration()
Constructs a default configuration, Uses the VMs default character
encoding, unsanitized output into a single file, overwrites files without
asking.
|
Modifier and Type | Method and Description |
---|---|
void |
setEncoding(java.lang.String encoding)
Sets the character encoding for the output files.
|
void |
setOverwriteConfirmer(OverwriteConfirmation overwriteConfirmer)
Sets the object to ask if a file can be overwritten.
|
void |
setPreferredSeparator(java.lang.String preferredSeparator)
Sets the column separator for text-based output formats such as CSV.
|
void |
setQuotingStrategy(DataExportConfiguration.QuotingStrategy quotingStrategy)
Sets the quoting strategy for text-based output formats.
|
void |
setSanitizeOutput(boolean sanitizeOutput)
Specifies whether or not to output the row header column.
|
void |
setSingleOutputFile(boolean singleOutputFile)
Specifies whether or not to write all data tables to a single file.
|
public DataExportConfiguration()
public void setEncoding(java.lang.String encoding)
encoding
- Name of an encoding that Charset.forName(String)
will understand.public void setSingleOutputFile(boolean singleOutputFile)
singleOutputFile
- true
for output to a single file,
false
to write each table to a separate filepublic void setSanitizeOutput(boolean sanitizeOutput)
sanitizeOutput
- true
to suppress output of the row
header column, false
to include it in the output.public void setPreferredSeparator(java.lang.String preferredSeparator)
preferredSeparator
- The separator string to use if the format
allows alternative separators.public void setQuotingStrategy(DataExportConfiguration.QuotingStrategy quotingStrategy)
Values that themselves include line or column separator characters should be set in quotes to preserve the table structure.
quotingStrategy
- The applicable quoting strategy.public void setOverwriteConfirmer(OverwriteConfirmation overwriteConfirmer)
overwriteConfirmer
- The objects that knows or knows how to find out
what files can be overwritten