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 BYTES_CACH_INIT_SIZE
           
static int BYTeS_CACH_MAX_SIZE
           
static int CHARS_CACH_INIT_SIZE
           
static int CHARS_CACH_MAX_SIZE
           
 
Constructor Summary
ThreadLocalCache()
           
 
Method Summary
static void clearBytes()
           
static void clearChars()
           
static byte[] getBytes(int length)
           
static char[] getChars(int length)
           
static CharsetDecoder getUTF8Decoder()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.