@FunctionalInterface public interface ICharArrayEncoder extends IEncoder<char[],char[]>
| Modifier and Type | Method and Description |
|---|---|
default char[] |
getEncoded(char[] aDecodedBuffer)
Encode a char array.
|
char[] |
getEncoded(char[] aDecodedBuffer,
int nOfs,
int nLen)
Encode a char array.
|
default char[] |
getEncoded(String sDecoded)
Encode the passed string.
|
default int |
getMaximumEncodedLength(int nDecodedLen)
Get the maximum encoded length based on the provided decoded length.
|
@Nonnegative default int getMaximumEncodedLength(@Nonnegative int nDecodedLen)
nDecodedLen - The decoded length. Always ≥ 0.@Nullable @ReturnsMutableCopy default char[] getEncoded(@Nullable char[] aDecodedBuffer)
getEncoded in interface IEncoder<char[],char[]>aDecodedBuffer - The char array to be encoded. May be null.null if the parameter was
null.EncodeException - In case something goes wrong@Nullable @ReturnsMutableCopy char[] getEncoded(@Nullable char[] aDecodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
aDecodedBuffer - The char array to be encoded. May be null.nOfs - Offset into the char array to start from.nLen - Number of chars starting from offset to consider.null if the parameter was
null.EncodeException - In case something goes wrong@Nullable @ReturnsMutableCopy default char[] getEncoded(@Nullable String sDecoded)
sDecoded - The string to be encoded. May be null.null if the input string is null.EncodeException - In case something goes wrongCopyright © 2014–2020 Philip Helger. All rights reserved.