public enum LineSeparator extends java.lang.Enum<LineSeparator>
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
evaluate(java.lang.String expression)
改行コードの表現を評価する。 
本列挙クラスの要素名である場合、すなわち LineSeparator#valueOf(String)が値を返却する場合は
 その値が持つ改行コードを返却する。それ以外の場合は、与えられた表現がそれ自身改行コードとみなして、
 その引数をそのまま返却する。 | 
java.lang.String | 
toString() | 
static LineSeparator | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static LineSeparator[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final LineSeparator NONE
public static final LineSeparator CR
public static final LineSeparator LF
public static final LineSeparator CRLF
public static LineSeparator[] values()
for (LineSeparator c : LineSeparator.values()) System.out.println(c);
public static LineSeparator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<LineSeparator>public static java.lang.String evaluate(java.lang.String expression)
LineSeparator#valueOf(String)が値を返却する場合は
 その値が持つ改行コードを返却する。それ以外の場合は、与えられた表現がそれ自身改行コードとみなして、
 その引数をそのまま返却する。
 
 (例)
 
 LineSeparator.evaluate("CRLF"); // --> "\r\n"が返却される。
 LineSeparator.evaluate(":");    // --> ":"が返却される。
 
 
expression - 改行コード表現