public enum Eol extends Enum<Eol>
| Enum Constant and Description |
|---|
AUTODETECT
Autodetect the end of line value based on some existing file using
autodetect(Path, Charset) |
CRLF
Windows
\r\n |
LF
Unix
\n |
PLATFORM
|
| Modifier and Type | Method and Description |
|---|---|
static Eol |
autodetect(Path file,
Charset charset) |
String |
getEolString() |
static Eol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Eol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Eol LF
\npublic static final Eol CRLF
\r\npublic static final Eol AUTODETECT
autodetect(Path, Charset)@Deprecated public static final Eol PLATFORM
Eol. PLATFORM
makes your build irreproducible on other platforms.line.separator system property in the current JVM.public static Eol[] values()
for (Eol c : Eol.values()) System.out.println(c);
public static Eol 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 static Eol autodetect(Path file, Charset charset) throws IOException
IOExceptionpublic String getEolString()
Copyright © 2010–2019 MojoHaus. All rights reserved.