Thread local cache of sun.io code set converters for performance.
The thread local class contains a single reference to a Map[]
containing two WeakHashMaps. One for CharsetEncoders and
one for CharsetDecoders. Constants are defined for indexing.
This is used internally by CodeSetConversion.
Fields Summary
private ThreadLocal
converterCaches
The ThreadLocal data is a 2 element Map array indexed
by BTC_CACHE_MAP and CTB_CACHE_MAP.
private static final int
BTC_CACHE_MAP
Index in the thread local converterCaches array for
the byte to char converter Map. A key is the Java
name corresponding to the desired code set.
private static final int
CTB_CACHE_MAP
Index in the thread local converterCaches array for
the char to byte converter Map. A key is the Java
name corresponding to the desired code set.