public class ContextLocalBuffer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
byteBufferSize
初始化的字节大小
|
static int |
charBufferSize
初始化的字符数组大小
|
| 构造器和说明 |
|---|
ContextLocalBuffer() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clear() |
static ContextLocalBuffer |
get() |
byte[] |
getByteBuffer() |
byte[] |
getByteBuffer(int expected)
得到期望字节数组大小
|
char[] |
getCharBuffer() |
char[] |
getCharBuffer(int expected)
得到一个期望长度的buffer
|
public static int charBufferSize
public static int byteBufferSize
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.