|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ScriptfileUtils.LineEndingStyle>
com.dtolabs.rundeck.core.execution.script.ScriptfileUtils.LineEndingStyle
public static enum ScriptfileUtils.LineEndingStyle
Line ending style
Enum Constant Summary | |
---|---|
LOCAL
Local line endings of the jvm host |
|
UNIX
Unix line endings, "\n" |
|
WINDOWS
Windows line endings, "\r\n" |
Method Summary | |
---|---|
static ScriptfileUtils.LineEndingStyle |
forOsFamily(java.lang.String family)
Return line ending style given an OS Family string, or returns the Local line ending style if the string does not map to a known style |
java.lang.String |
getLineSeparator()
Return the line separator string for this style |
static ScriptfileUtils.LineEndingStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ScriptfileUtils.LineEndingStyle[] |
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 |
---|
public static final ScriptfileUtils.LineEndingStyle UNIX
public static final ScriptfileUtils.LineEndingStyle WINDOWS
public static final ScriptfileUtils.LineEndingStyle LOCAL
Method Detail |
---|
public static ScriptfileUtils.LineEndingStyle[] values()
for (ScriptfileUtils.LineEndingStyle c : ScriptfileUtils.LineEndingStyle.values()) System.out.println(c);
public static ScriptfileUtils.LineEndingStyle 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 name
java.lang.NullPointerException
- if the argument is nullpublic static ScriptfileUtils.LineEndingStyle forOsFamily(java.lang.String family)
family
-
public java.lang.String getLineSeparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |