Package org.aoju.bus.socket.protocol
Class FixedLengthBytesProtocol<T>
java.lang.Object
org.aoju.bus.socket.protocol.FixedLengthBytesProtocol<T>
- All Implemented Interfaces:
Protocol<T>
- Direct Known Subclasses:
ByteArrayProtocol
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tdecode(byte[] bytes, AioSession session) final Tdecode(ByteBuffer readBuffer, AioSession session) 对于从Socket流中获取到的数据采用当前Protocol的实现类协议进行解析。
-
Constructor Details
-
FixedLengthBytesProtocol
public FixedLengthBytesProtocol()
-
-
Method Details