leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.fastbee.base.codec;
 
/**
 * 分隔符报文处理器
 * 处理分割符报文,tcp粘包处理
 * @author bill
 */
public class Delimiter {
 
    public final byte[] value;
    public final boolean strip;
 
    public Delimiter(byte[] value) {
        this(value, true);
    }
 
    public Delimiter(byte[] value, boolean strip) {
        this.value = value;
        this.strip = strip;
    }
 
    public byte[] getValue() {
        return value;
    }
 
    public boolean isStrip() {
        return strip;
    }
}