public enum OPCode extends Enum<OPCode>
| 枚举常量和说明 |
|---|
BinaryFrame
二进制帧
|
Close
连接断开
|
ContinueFrame
延续分片
|
PingFrame
Ping帧
|
PongFrame
Pong帧
|
TextFrame
文本帧
|
| 限定符和类型 | 字段和说明 |
|---|---|
int |
value |
| 限定符和类型 | 方法和说明 |
|---|---|
static OPCode |
getOPCode(int value)
获取操作代码
|
static OPCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static OPCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final OPCode ContinueFrame
public static final OPCode TextFrame
public static final OPCode BinaryFrame
public static final OPCode Close
public static final OPCode PingFrame
public static final OPCode PongFrame
public static OPCode[] values()
for (OPCode c : OPCode.values()) System.out.println(c);
public static OPCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static OPCode getOPCode(int value)
Copyright © 2022. All rights reserved.