public enum WebSocketMessageType extends Enum<WebSocketMessageType>
WebSocketMessageType
represents the types of the messages that are
received by the WebSocketMessageReader
. WebSocketMessageType.EOS
represents end-of-stream.Modifier and Type | Method and Description |
---|---|
static WebSocketMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketMessageType EOS
public static final WebSocketMessageType TEXT
public static final WebSocketMessageType BINARY
public static WebSocketMessageType[] values()
for (WebSocketMessageType c : WebSocketMessageType.values()) System.out.println(c);
public static WebSocketMessageType 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 © 2014. All Rights Reserved.