Package com.sshtools.client.shell
Enum ExpectShell.OS
- All Implemented Interfaces:
Serializable,Comparable<ExpectShell.OS>,java.lang.constant.Constable
- Enclosing class:
- ExpectShell
Enumeration of operating systems, that also encapsulates
some operating specific information
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintcode()Deprecated, for removal: This API element is subject to removal in a future version.static ExpectShell.OScode(int code) Deprecated, for removal: This API element is subject to removal in a future version.Get a description of the operating system.Get the command this operating system uses to echo content back to the terminal.eol()Get the end of line sequence.Get the exit code variable this operating system uses.Get the pipe command, if this OS has one.static ExpectShell.OSReturns the enum constant of this type with the specified name.static ExpectShell.OS[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WINDOWS
-
LINUX
-
SOLARIS
-
AIX
-
DARWIN
-
FREEBSD
-
OPENBSD
-
NETBSD
-
HPUX
-
UNIX
-
OPENVMS
-
POWERSHELL
-
UNKNOWN
-
-
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
-
code
Deprecated, for removal: This API element is subject to removal in a future version.Get the legacy operating system code for this operating system.- Returns:
- code
-
code
Deprecated, for removal: This API element is subject to removal in a future version.Get anExpectShell.OSgiven the legacy code (see the constants inExpectShell.- Parameters:
code- legacy code- Returns:
- operating system constant
-
description
Get a description of the operating system.- Returns:
- description
-
exitCodeVariable
Get the exit code variable this operating system uses.- Returns:
- exit code variable
-
echoCommand
Get the command this operating system uses to echo content back to the terminal.- Returns:
- echo command
-
pipeCommand
Get the pipe command, if this OS has one.- Returns:
- pipe command
-
eol
Get the end of line sequence.- Returns:
-