public class CachedCharsetCoding extends Object
CharsetEncoder
, CharsetDecoder
pair for each calling thread.Constructor and Description |
---|
CachedCharsetCoding(Charset charset)
Creates a per-thread cache for encoder-decoder pairs for the
given character set.
|
Modifier and Type | Method and Description |
---|---|
CharsetDecoder |
getDecoder()
Returns the decoder for the current thread (potentially after
creating it).
|
CharsetEncoder |
getEncoder()
Returns the encoder for the current thread (potentially after
creating it).
|
public CachedCharsetCoding(Charset charset)
charset
- The character set that should be used for en- and
decoding.public CharsetEncoder getEncoder()
public CharsetDecoder getDecoder()
Copyright © 2018 CoR-Lab. All rights reserved.