public static enum WebSocket.PayloadType extends Enum<WebSocket.PayloadType>
Enum Constant and Description |
---|
BINARY
Arbitrary binary data.
|
TEXT
UTF8-encoded text data.
|
Modifier and Type | Method and Description |
---|---|
static WebSocket.PayloadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocket.PayloadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocket.PayloadType TEXT
public static final WebSocket.PayloadType BINARY
public static WebSocket.PayloadType[] values()
for (WebSocket.PayloadType c : WebSocket.PayloadType.values()) System.out.println(c);
public static WebSocket.PayloadType 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 nullCopyright © 2015. All rights reserved.