1.0
This commit is contained in:
14
旧的java项目/itcast/protocol/ProcotolFrameDecoder.java
Normal file
14
旧的java项目/itcast/protocol/ProcotolFrameDecoder.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package cn.itcast.protocol;
|
||||
|
||||
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;
|
||||
|
||||
public class ProcotolFrameDecoder extends LengthFieldBasedFrameDecoder {
|
||||
|
||||
public ProcotolFrameDecoder() {
|
||||
this(1024, 12, 4, 0, 0);
|
||||
}
|
||||
|
||||
public ProcotolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
|
||||
super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user