Enum Class SystemStream

java.lang.Object
java.lang.Enum<SystemStream>
org.jline.terminal.spi.SystemStream
All Implemented Interfaces:
Serializable, Comparable<SystemStream>, Constable

public enum SystemStream extends Enum<SystemStream>
Represents the standard system streams available in a terminal environment.

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:
  • Enum Constant Details

    • Input

      public static final SystemStream 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

      public static final SystemStream 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

      public static final SystemStream 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

      public static SystemStream[] 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

      public static SystemStream valueOf(String name)
      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 name
      NullPointerException - if the argument is null