www.sdmetrics.com

com.sdmetrics.output
Enum DataExportConfiguration.QuotingStrategy

java.lang.Object
  extended by java.lang.Enum<DataExportConfiguration.QuotingStrategy>
      extended by com.sdmetrics.output.DataExportConfiguration.QuotingStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DataExportConfiguration.QuotingStrategy>
Enclosing class:
DataExportConfiguration

public static enum DataExportConfiguration.QuotingStrategy
extends java.lang.Enum<DataExportConfiguration.QuotingStrategy>

Enumerates the quoting strategies for text-based output file formats such as CSV.

When a data value to be written itself contains the column or line separator, writing the value "as is" will corrupt the overall table structure of the file. A common solution is to put such values in quotes. Column or line separators within quotes can then be interpreted as data.


Enum Constant Summary
ALWAYS
          Always use quotes, even if the value does not contain any of the separators.
AS_NEEDED
          Quote only values that contain the column or line separator.
NEVER
          Never use quotes, even if the value contains the column or line separator.
 
Method Summary
static DataExportConfiguration.QuotingStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataExportConfiguration.QuotingStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NEVER

public static final DataExportConfiguration.QuotingStrategy NEVER
Never use quotes, even if the value contains the column or line separator.


AS_NEEDED

public static final DataExportConfiguration.QuotingStrategy AS_NEEDED
Quote only values that contain the column or line separator.


ALWAYS

public static final DataExportConfiguration.QuotingStrategy ALWAYS
Always use quotes, even if the value does not contain any of the separators.

Method Detail

values

public static DataExportConfiguration.QuotingStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DataExportConfiguration.QuotingStrategy c : DataExportConfiguration.QuotingStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataExportConfiguration.QuotingStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

www.sdmetrics.com