Package org.codehaus.mojo.license
Enum Eol
- All Implemented Interfaces:
Serializable
,Comparable<Eol>
End of line values
- Since:
- 1.17
-
Enum Constant Summary
Enum ConstantDescriptionAutodetect the end of line value based on some existing file usingautodetect(Path, Charset)
Windows\r\n
Unix\n
Deprecated.kept for backwards compatibility reasons. -
Method Summary
-
Enum Constant Details
-
LF
Unix\n
-
CRLF
Windows\r\n
-
AUTODETECT
Autodetect the end of line value based on some existing file usingautodetect(Path, Charset)
-
PLATFORM
Deprecated.The value of theline.separator
system property in the current JVM.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
autodetect
- Throws:
IOException
-
getEolString
-