public enum Mqtt5PayloadFormatIndicator extends Enum<Mqtt5PayloadFormatIndicator>
Enum Constant and Description |
---|
UNSPECIFIED
Payload consists of unspecified bytes.
|
UTF_8
Payload consists of UTF-8 encoded character data as defined by the Unicode specification and restated in RFC
3629.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable Mqtt5PayloadFormatIndicator |
fromCode(int code)
Returns the Payload Format Indicator belonging to the given byte code.
|
int |
getCode() |
static Mqtt5PayloadFormatIndicator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5PayloadFormatIndicator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mqtt5PayloadFormatIndicator UNSPECIFIED
public static final Mqtt5PayloadFormatIndicator UTF_8
public static Mqtt5PayloadFormatIndicator[] values()
for (Mqtt5PayloadFormatIndicator c : Mqtt5PayloadFormatIndicator.values()) System.out.println(c);
public static Mqtt5PayloadFormatIndicator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
@Nullable public static @Nullable Mqtt5PayloadFormatIndicator fromCode(int code)
code
- the byte code.