1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package io.netty.buffer;
18
19 import io.netty.util.ByteProcessor;
20
21
22
23
24 @Deprecated
25 public interface ByteBufProcessor extends ByteProcessor {
26
27
28
29
30 @Deprecated
31 ByteBufProcessor FIND_NUL = new ByteBufProcessor() {
32 @Override
33 public boolean process(byte value) throws Exception {
34 return value != 0;
35 }
36 };
37
38
39
40
41 @Deprecated
42 ByteBufProcessor FIND_NON_NUL = new ByteBufProcessor() {
43 @Override
44 public boolean process(byte value) throws Exception {
45 return value == 0;
46 }
47 };
48
49
50
51
52 @Deprecated
53 ByteBufProcessor FIND_CR = new ByteBufProcessor() {
54 @Override
55 public boolean process(byte value) throws Exception {
56 return value != '\r';
57 }
58 };
59
60
61
62
63 @Deprecated
64 ByteBufProcessor FIND_NON_CR = new ByteBufProcessor() {
65 @Override
66 public boolean process(byte value) throws Exception {
67 return value == '\r';
68 }
69 };
70
71
72
73
74 @Deprecated
75 ByteBufProcessor FIND_LF = new ByteBufProcessor() {
76 @Override
77 public boolean process(byte value) throws Exception {
78 return value != '\n';
79 }
80 };
81
82
83
84
85 @Deprecated
86 ByteBufProcessor FIND_NON_LF = new ByteBufProcessor() {
87 @Override
88 public boolean process(byte value) throws Exception {
89 return value == '\n';
90 }
91 };
92
93
94
95
96 @Deprecated
97 ByteBufProcessor FIND_CRLF = new ByteBufProcessor() {
98 @Override
99 public boolean process(byte value) throws Exception {
100 return value != '\r' && value != '\n';
101 }
102 };
103
104
105
106
107 @Deprecated
108 ByteBufProcessor FIND_NON_CRLF = new ByteBufProcessor() {
109 @Override
110 public boolean process(byte value) throws Exception {
111 return value == '\r' || value == '\n';
112 }
113 };
114
115
116
117
118 @Deprecated
119 ByteBufProcessor FIND_LINEAR_WHITESPACE = new ByteBufProcessor() {
120 @Override
121 public boolean process(byte value) throws Exception {
122 return value != ' ' && value != '\t';
123 }
124 };
125
126
127
128
129 @Deprecated
130 ByteBufProcessor FIND_NON_LINEAR_WHITESPACE = new ByteBufProcessor() {
131 @Override
132 public boolean process(byte value) throws Exception {
133 return value == ' ' || value == '\t';
134 }
135 };
136 }