ThreadLocalCache (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.util Class ThreadLocalCache

java.lang.Object
  extended by com.alibaba.fastjson.util.ThreadLocalCache

public class ThreadLocalCache
extends Object


Field Summary
static int
static int
static int
static int
 
Constructor Summary
 
Method Summary
static void
static void
static byte[]
static char[]
static CharsetDecoder
 
Methods inherited from class java.lang.Object
 

Field Detail

CHARS_CACH_INIT_SIZE

public static final int CHARS_CACH_INIT_SIZE
See Also:
Constant Field Values

CHARS_CACH_MAX_SIZE

public static final int CHARS_CACH_MAX_SIZE
See Also:
Constant Field Values

BYTES_CACH_INIT_SIZE

public static final int BYTES_CACH_INIT_SIZE
See Also:
Constant Field Values

BYTeS_CACH_MAX_SIZE

public static final int BYTeS_CACH_MAX_SIZE
See Also:
Constant Field Values
Constructor Detail

ThreadLocalCache

public ThreadLocalCache()
Method Detail

getUTF8Decoder

public static CharsetDecoder getUTF8Decoder()

clearChars

public static void clearChars()

getChars

public static char[] getChars(int length)

clearBytes

public static void clearBytes()

getBytes

public static byte[] getBytes(int length)


Copyright © 2012 Alibaba Group. All Rights Reserved.