Enum Class SystemStream
- All Implemented Interfaces:
Serializable
,Comparable<SystemStream>
,Constable
This enum defines the three standard streams that are typically available in a terminal environment: standard input, standard output, and standard error. These streams are used for communication between the terminal and the processes running within it.
Terminal implementations and PTY objects may be associated with one of these system streams to indicate their role in the terminal environment.
- See Also:
-
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 TypeMethodDescriptionstatic SystemStream
Returns the enum constant of this class with the specified name.static SystemStream[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Input
Standard input stream (stdin).This stream is used to provide input to processes running in the terminal. It typically represents keyboard input from the user.
-
Output
Standard output stream (stdout).This stream is used by processes to output normal data. It typically represents the main display output of the terminal.
-
Error
Standard error stream (stderr).This stream is used by processes to output error messages and diagnostic information. It may be displayed differently from standard output or redirected to a separate destination.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-