Enum TLVStateEnum

    • Enum Constant Detail

      • TAG_STATE_START

        public static final TLVStateEnum TAG_STATE_START
        Start means that the deconding hasn't read the first byte
      • TAG_STATE_PENDING

        public static final TLVStateEnum TAG_STATE_PENDING
        Pending means that the Type Tag is contained in more that one byte
      • TAG_STATE_END

        public static final TLVStateEnum TAG_STATE_END
        End means that the Type is totally read
      • TAG_STATE_OVERFLOW

        public static final TLVStateEnum TAG_STATE_OVERFLOW
        Overflow could have two meaning : either there are more than 5 bytes to encode the value (5 bytes = 5bits + 4*7 bits = 33 bits) or the value that is represented by those bytes is over MAX_INTEGER
      • LENGTH_STATE_START

        public static final TLVStateEnum LENGTH_STATE_START
        Start means that the decoding hasn't read the first byte
      • LENGTH_STATE_PENDING

        public static final TLVStateEnum LENGTH_STATE_PENDING
        Pending means that the Type length is contained in more that one byte
      • LENGTH_STATE_END

        public static final TLVStateEnum LENGTH_STATE_END
        End means that the Length is totally read
      • VALUE_STATE_START

        public static final TLVStateEnum VALUE_STATE_START
        Start means that the decoding hasn't read the first byte
      • VALUE_STATE_PENDING

        public static final TLVStateEnum VALUE_STATE_PENDING
        Pending means that the Type Value is contained in more that one byte
      • VALUE_STATE_END

        public static final TLVStateEnum VALUE_STATE_END
        End means that the Value is totally read
      • TLV_STATE_DONE

        public static final TLVStateEnum TLV_STATE_DONE
        The decoding of a TLV is done
      • PDU_DECODED

        public static final TLVStateEnum PDU_DECODED
        The decoding of a PDU is done
      • GRAMMAR_END

        public static final TLVStateEnum GRAMMAR_END
        The ending state
    • Method Detail

      • values

        public static TLVStateEnum[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TLVStateEnum c : TLVStateEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TLVStateEnum 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