| 类 | 说明 |
|---|---|
| DelimiterBasedFrameHandler | |
| LimitFrameHandler |
in
ByteBuf is split into multiple ByteBuf using a fixed length
Case 1
maxLength = 10
BEFORE (25 bytes) AFTER (25 bytes)
+----------+ +----------+----------+---------+
| 25 bytes | -----> | 10 bytes | 10 bytes | 5 bytes |
+----------+ +----------+----------+---------+
Case 2
maxLength = 10
BEFORE (14 bytes) AFTER (14 bytes)
+------------------------------+ +------------+-----------+
| 3 bytes | 10 bytes | 1 bytes | ---> | (10 bytes) | (4 bytes) |
+------------------------------+ +------------+-----------+
|
| LineBasedFrameHandler |
A decoder that splits the received
ByteBufs on line endings. |
| 异常错误 | 说明 |
|---|---|
| CodecException |
An
Exception which is thrown by a codec. |
| TooLongFrameException |
An
CodecException which is thrown when the length of the frame
decoded is greater than the allowed maximum. |
Copyright © 2022–2024. All rights reserved.