public abstract class AbstractCharEncoder extends Object implements CharEncoder
| Constructor and Description |
|---|
AbstractCharEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(char[] chars,
CharWriter writer) |
void |
encode(char[] chars,
int off,
int len,
CharWriter writer) |
void |
encode(char c,
CharWriter writer) |
void |
encode(CharSequence s,
CharWriter writer) |
String |
encode(String string) |
protected abstract void |
safeEncode(char[] chars,
int off,
int len,
CharWriter writer) |
public void encode(char[] chars,
int off,
int len,
CharWriter writer)
throws EncodingException
encode in interface CharEncoderchars - the chars to encodeoff - the offset in the char arraylen - the lenght of chars to encodewriter - the writer to useEncodingException - an encoding exceptionpublic void encode(char[] chars,
CharWriter writer)
throws EncodingException
encode in interface CharEncoderchars - the chars to encodewriter - the writer to useEncodingException - an encoding exceptionpublic void encode(CharSequence s, CharWriter writer) throws EncodingException
encode in interface CharEncoders - the sequence to encodewriter - the writer to useEncodingException - an encoding exceptionpublic void encode(char c,
CharWriter writer)
throws EncodingException
encode in interface CharEncoderc - the char to encodewriter - the writer to useEncodingException - an encoding exceptionpublic String encode(String string) throws IllegalArgumentException
encode in interface CharEncoderstring - the String to encodeIllegalArgumentException - if the specified String is nullprotected abstract void safeEncode(char[] chars,
int off,
int len,
CharWriter writer)
throws EncodingException
EncodingExceptionCopyright © 2025 JBoss by Red Hat. All Rights Reserved.