public final class CharsetTextEncoder extends Object implements TextEncoder
| Constructor and Description |
|---|
CharsetTextEncoder(CharEncoder charEncoder) |
CharsetTextEncoder(String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(char[] chars,
int off,
int len,
OutputStream out) |
void |
encode(char c,
OutputStream out) |
void |
encode(String str,
int off,
int len,
OutputStream out) |
Charset |
getCharset()
Returns the charset that will perform the encoding.
|
static TextEncoder |
getUTF8() |
public CharsetTextEncoder(CharEncoder charEncoder)
public CharsetTextEncoder(String encoding)
public static TextEncoder getUTF8()
public Charset getCharset()
TextEncodergetCharset in interface TextEncoderpublic void encode(char c,
OutputStream out)
throws IOException
encode in interface TextEncoderIOExceptionpublic void encode(char[] chars,
int off,
int len,
OutputStream out)
throws IOException
encode in interface TextEncoderIOExceptionpublic void encode(String str, int off, int len, OutputStream out) throws IOException
encode in interface TextEncoderIOExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.