You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copyright (c) 2015 AsyncHttpClient Project. All rights reserved.
3
+
*
4
+
* This program is licensed to you under the Apache License Version 2.0,
5
+
* and you may not use this file except in compliance with the Apache License Version 2.0.
6
+
* You may obtain a copy of the Apache License Version 2.0 at
7
+
* http://www.apache.org/licenses/LICENSE-2.0.
8
+
*
9
+
* Unless required by applicable law or agreed to in writing,
10
+
* software distributed under the Apache License Version 2.0 is distributed on an
11
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
13
+
*/
14
+
packageorg.asynchttpclient.netty.util;
15
+
16
+
importio.netty.buffer.AbstractByteBuf;
17
+
importio.netty.buffer.ByteBuf;
18
+
importio.netty.util.concurrent.FastThreadLocal;
19
+
20
+
importjava.io.UTFDataFormatException;
21
+
22
+
publicclassUtf8Reader {
23
+
24
+
privatestaticintSMALL_BUFFER_SIZE = 4096;
25
+
privatestaticfinalIndexOutOfBoundsExceptionSTRING_DECODER_INDEX_OUT_OF_BOUNDS_EXCEPTION = newIndexOutOfBoundsException("String decoder index out of bounds");
0 commit comments