Package org.ka2ddo.yaac.io
Enum Class KissEscapeOutputStream.RcvState
- All Implemented Interfaces:
Serializable
,Comparable<KissEscapeOutputStream.RcvState>
,Constable
- Enclosing class:
- KissEscapeOutputStream
States of a KISS frame decoder.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionKISS decoder has not received the first FEND byte since (re-)initialization.KISS decoder has received an FESC byte and is waiting for the TFEND or TFESC byte to indicate which byte code was escaped.KISS decoder has received an FEND byte and is waiting for more body bytes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static KissEscapeOutputStream.RcvState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
KISS decoder has not received the first FEND byte since (re-)initialization. -
IN_FRAME
KISS decoder has received an FEND byte and is waiting for more body bytes. -
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
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
-