net.aavalla.utils.general
Enum FileUtils.EOLStyle

java.lang.Object
  extended by java.lang.Enum<FileUtils.EOLStyle>
      extended by net.aavalla.utils.general.FileUtils.EOLStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileUtils.EOLStyle>
Enclosing class:
FileUtils

public static enum FileUtils.EOLStyle
extends java.lang.Enum<FileUtils.EOLStyle>

End-Of-Line style (LF, CR or CRLF)


Enum Constant Summary
CR
           
CRLF
           
LF
           
SYSTEM
          Represents the systems default EOL style
UNKNOWN
           
 
Method Summary
abstract  java.lang.String EOL()
          The actual character(s) that signal EOL
static FileUtils.EOLStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileUtils.EOLStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final FileUtils.EOLStyle UNKNOWN

LF

public static final FileUtils.EOLStyle LF

CR

public static final FileUtils.EOLStyle CR

CRLF

public static final FileUtils.EOLStyle CRLF

SYSTEM

public static final FileUtils.EOLStyle SYSTEM
Represents the systems default EOL style

Method Detail

values

public static FileUtils.EOLStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FileUtils.EOLStyle c : FileUtils.EOLStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FileUtils.EOLStyle valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

EOL

public abstract java.lang.String EOL()
The actual character(s) that signal EOL