public interface CharEncoder
| 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) |
void encode(char c,
CharWriter writer)
throws IllegalArgumentException,
EncodingException
c - the char to encodewriter - the writer to useIllegalArgumentException - if any argument is nullEncodingException - an encoding exceptionvoid encode(char[] chars,
int off,
int len,
CharWriter writer)
throws IllegalArgumentException,
EncodingException
chars - the chars to encodeoff - the offset in the char arraylen - the lenght of chars to encodewriter - the writer to useIllegalArgumentException - if any argument is null or if the bounds not valid in the provided arrayEncodingException - an encoding exceptionvoid encode(char[] chars,
CharWriter writer)
throws IllegalArgumentException,
EncodingException
chars - the chars to encodewriter - the writer to useIllegalArgumentException - if any argument is nullEncodingException - an encoding exceptionvoid encode(CharSequence s, CharWriter writer) throws IllegalArgumentException, EncodingException
s - the sequence to encodewriter - the writer to useIllegalArgumentException - if any argument is nullEncodingException - an encoding exceptionString encode(String string) throws IllegalArgumentException
string - the String to encodeIllegalArgumentException - if the specified String is nullCopyright © 2025 JBoss by Red Hat. All Rights Reserved.