public enum LineEnding extends Enum<LineEnding>
| Modifier and Type | Method and Description |
|---|---|
static LineEnding |
determineLineEnding(String fileDataString)
Returns the most occurring line-ending characters in the file text or null if no line-ending occurs the most.
|
String |
getChars() |
static LineEnding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineEnding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineEnding AUTO
public static final LineEnding KEEP
public static final LineEnding LF
public static final LineEnding CRLF
public static final LineEnding CR
public static final LineEnding UNKNOWN
public static LineEnding[] values()
for (LineEnding c : LineEnding.values()) System.out.println(c);
public static LineEnding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getChars()
public static LineEnding determineLineEnding(String fileDataString)
Copyright © 2010–2018. All rights reserved.