public class ContextLocalBuffer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BYTE_MAX_SIZE |
static int |
byteBufferSize
初始化的字节大小
|
static int |
charBufferSize
初始化的字符数组大小
|
static boolean |
isSoft |
static boolean |
isThreadLocal |
static int |
MAX_SIZE |
| 构造器和说明 |
|---|
ContextLocalBuffer() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clear() |
static ContextLocalBuffer |
get() |
byte[] |
getByteBuffer() |
byte[] |
getByteBuffer(int expected)
得到期望字节数组大小
|
char[] |
getCharBuffer() |
char[] |
getCharBuffer(int expected)
得到一个期望长度的buffer,调用者应该检测是否返回null,表示
|
public static int charBufferSize
public static int byteBufferSize
public static int MAX_SIZE
public static int BYTE_MAX_SIZE
public static boolean isSoft
public static boolean isThreadLocal
public static ContextLocalBuffer get()
public static void clear()
public char[] getCharBuffer()
public byte[] getByteBuffer()
public char[] getCharBuffer(int expected)
expected - public byte[] getByteBuffer(int expected)
expected - Copyright © 2018. All rights reserved.