public class CharsetCharEncoder extends Object implements CharEncoder
| Constructor and Description |
|---|
CharsetCharEncoder(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode(char c)
Encodes a single char into an array of bytes.
|
Charset |
getCharset()
Returns the charset that will perform the encoding.
|
static CharEncoder |
getUTF8() |
public CharsetCharEncoder(Charset charset)
public static CharEncoder getUTF8()
public Charset getCharset()
CharEncodergetCharset in interface CharEncoderpublic byte[] encode(char c)
CharEncoderencode in interface CharEncoderc - the char to encodeCopyright © 2017 JBoss by Red Hat. All Rights Reserved.