public enum OpCode extends Enum<OpCode>
| Enum Constant and Description |
|---|
BINARY |
CLOSE |
CONTINUATION |
PING |
PONG |
TEXT |
| Modifier and Type | Method and Description |
|---|---|
static OpCode |
convert(byte singleByte) |
byte |
getCode() |
static OpCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpCode CONTINUATION
public static final OpCode TEXT
public static final OpCode BINARY
public static final OpCode CLOSE
public static final OpCode PING
public static final OpCode PONG
public static OpCode[] values()
for (OpCode c : OpCode.values()) System.out.println(c);
public static OpCode 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 static OpCode convert(byte singleByte)
public byte getCode()
Copyright © 2017. All rights reserved.