public class FrameCodecImpl extends java.lang.Object implements FrameCodec
构造器和说明 |
---|
FrameCodecImpl() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
cleanPendingStartData(int start) |
void |
decode(java.lang.String input,
java.util.function.Consumer<Frame> out)
解码
|
protected void |
decode(java.lang.String input,
java.util.function.Consumer<Frame> out,
int start) |
protected void |
decodeHeaders(FrameBuilder builder,
int cEndIdx,
int hEndIdx)
解析 Headers
|
java.lang.String |
encode(Frame frame)
编码
|
protected boolean |
isCommand(java.lang.String command) |
protected boolean |
isCommandChar(char c) |
public java.lang.String encode(Frame frame)
FrameCodec
encode
在接口中 FrameCodec
frame
- 帧public void decode(java.lang.String input, java.util.function.Consumer<Frame> out)
FrameCodec
decode
在接口中 FrameCodec
input
- 被编码的文本out
- 输出protected void decode(java.lang.String input, java.util.function.Consumer<Frame> out, int start)
out
- 输出start
- 开始解析的问题protected void cleanPendingStartData(int start)
protected void decodeHeaders(FrameBuilder builder, int cEndIdx, int hEndIdx)
cEndIdx
- Command 结尾符下标hEndIdx
- Headers 结尾符下标protected boolean isCommand(java.lang.String command)
protected boolean isCommandChar(char c)