Enum Class KissEscapeOutputStream.RcvState

java.lang.Object
java.lang.Enum<KissEscapeOutputStream.RcvState>
org.ka2ddo.yaac.io.KissEscapeOutputStream.RcvState
All Implemented Interfaces:
Serializable, Comparable<KissEscapeOutputStream.RcvState>, Constable
Enclosing class:
KissEscapeOutputStream

public static enum KissEscapeOutputStream.RcvState extends Enum<KissEscapeOutputStream.RcvState>
States of a KISS frame decoder.
  • Enum Constant Details

    • IDLE

      public static final KissEscapeOutputStream.RcvState IDLE
      KISS decoder has not received the first FEND byte since (re-)initialization.
    • IN_FRAME

      public static final KissEscapeOutputStream.RcvState IN_FRAME
      KISS decoder has received an FEND byte and is waiting for more body bytes.
    • IN_ESC

      public static final KissEscapeOutputStream.RcvState IN_ESC
      KISS decoder has received an FESC byte and is waiting for the TFEND or TFESC byte to indicate which byte code was escaped.
  • Method Details

    • values

      public static KissEscapeOutputStream.RcvState[] 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 KissEscapeOutputStream.RcvState 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