Top Description Fields Constructors Methods
de.siegmar.fastcsv.writer

public final Enum LineDelimiter

extends Enum<LineDelimiter>
Class Inheritance

Enumeration for different line delimiters (LF, CR, CRLF, platform default).

Field Summary

Modifier and TypeField and Description
public static final LineDelimiter
CR

Carriage Return - (Mac classic).

public static final LineDelimiter
CRLF

Carriage Return and Line Feed (Windows).

public static final LineDelimiter
LF

Line Feed - (UNIX).

public static final LineDelimiter
PLATFORM

Use current platform default (System#lineSeparator().

private final String

Constructor Summary

AccessConstructor and Description
private
LineDelimiter(final String str)

Method Summary

Modifier and TypeMethod and Description
public static LineDelimiter

Returns:

the enum representation of the given string.
of
(final String
the string to convert to an enum.
str
)

Build an enum based on the given string.

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static LineDelimiter
public static LineDelimiter[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

CRback to summary
public static final LineDelimiter CR

Carriage Return - (Mac classic).

CRLFback to summary
public static final LineDelimiter CRLF

Carriage Return and Line Feed (Windows).

LFback to summary
public static final LineDelimiter LF

Line Feed - (UNIX).

PLATFORMback to summary
public static final LineDelimiter PLATFORM

Use current platform default (System#lineSeparator().

strback to summary
private final String str

Constructor Detail

LineDelimiterback to summary
private LineDelimiter(final String str)

Method Detail

ofback to summary
public static LineDelimiter of(final String str)

Build an enum based on the given string.

Parameters
str:String

the string to convert to an enum.

Returns:LineDelimiter

the enum representation of the given string.

Exceptions
IllegalArgumentException:
if the string is not a known line delimiter.
toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Annotations
@Override
valueOfback to summary
public static LineDelimiter valueOf(String name)
valuesback to summary
public static LineDelimiter[] values()