public enum LineEndings extends Enum<LineEndings>
Modifier and Type | Method and Description |
---|---|
String |
getLineEndingCharacters() |
boolean |
isCrLF() |
boolean |
isNewLine() |
static LineEndings |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineEndings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineEndings keep
public static final LineEndings dos
public static final LineEndings windows
public static final LineEndings unix
public static final LineEndings crlf
public static final LineEndings lf
public static LineEndings[] values()
for (LineEndings c : LineEndings.values()) System.out.println(c);
public static LineEndings 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 boolean isNewLine()
public boolean isCrLF()
public String getLineEndingCharacters()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.