java.lang.Object
java.lang.Enum<Handshake>
org.refcodes.serial.alt.tty.Handshake
All Implemented Interfaces:
Serializable, Comparable<Handshake>, java.lang.constant.Constable

public enum Handshake extends Enum<Handshake>
The Handshake as of "https://en.wikipedia.org/wiki/Serial_port#Flow_control"
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The underlying system's implementation or other implementation specific handshaking is used.
    "Hardware handshaking is done with extra signals, often the RS-232 RTS/CTS or DTR/DSR signal circuits."
    "If no handshaking is employed, an overrun receiver might simply fail to receive data from the transmitter."
    "Hardware handshaking is done with extra signals, often the RS-232 RTS/CTS or DTR/DSR signal circuits."
    "Software handshaking is done for example with ASCII control characters XON/XOFF to control the flow of data."
  • Method Summary

    Modifier and Type
    Method
    Description
    org.refcodes.serial.FlowControlType
    Retrieves the FlowControlType.
    boolean
    Determines whether the Handshake represents a hardware flow control.
    boolean
    Determines whether the Handshake represents a software flow control.
    static Handshake
    Returns the enum constant of this type with the specified name.
    static Handshake[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final Handshake NONE
      "If no handshaking is employed, an overrun receiver might simply fail to receive data from the transmitter."
    • SOFTWARE

      public static final Handshake SOFTWARE
      "Software handshaking is done for example with ASCII control characters XON/XOFF to control the flow of data."
    • RTS

      public static final Handshake RTS
      "Hardware handshaking is done with extra signals, often the RS-232 RTS/CTS or DTR/DSR signal circuits."
    • DTR

      public static final Handshake DTR
      "Hardware handshaking is done with extra signals, often the RS-232 RTS/CTS or DTR/DSR signal circuits."
    • AUTO

      public static final Handshake AUTO
      The underlying system's implementation or other implementation specific handshaking is used.
  • Method Details

    • values

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

      public static Handshake valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isHardwareFlowControl

      public boolean isHardwareFlowControl()
      Determines whether the Handshake represents a hardware flow control.
      Returns:
      True in case of hardware flow control.
    • isSoftwareFlowControl

      public boolean isSoftwareFlowControl()
      Determines whether the Handshake represents a software flow control.
      Returns:
      True in case of software flow control.
    • getFlowControlType

      public org.refcodes.serial.FlowControlType getFlowControlType()
      Retrieves the FlowControlType.
      Returns:
      The according flow control type (hardware or software) .