public enum WebSocketEncoding extends Enum<WebSocketEncoding>
| Modifier and Type | Method and Description |
|---|---|
int |
getEncoding() |
static WebSocketEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketEncoding INVALID
public static final WebSocketEncoding TEXT
public static final WebSocketEncoding BINARY
public static WebSocketEncoding[] values()
for (WebSocketEncoding c : WebSocketEncoding.values()) System.out.println(c);
public static WebSocketEncoding 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 getEncoding()
Copyright © 2013. All Rights Reserved.