@FunctionalInterface public interface ICharArrayDecoder extends IDecoder<char[],char[]>
| Modifier and Type | Method and Description |
|---|---|
default char[] |
getDecoded(char[] aEncodedBuffer)
Decode a char array.
|
char[] |
getDecoded(char[] aEncodedBuffer,
int nOfs,
int nLen)
Decode a char array.
|
default char[] |
getDecoded(String sEncoded)
Decode the passed string.
|
default int |
getMaximumDecodedLength(int nEncodedLen)
Get the maximum decoded length based on the provided encoded length.
|
@Nonnegative default int getMaximumDecodedLength(@Nonnegative int nEncodedLen)
nEncodedLen - The encoded length. Always ≥ 0.@Nullable @ReturnsMutableCopy default char[] getDecoded(@Nullable char[] aEncodedBuffer)
getDecoded in interface IDecoder<char[],char[]>aEncodedBuffer - The char array to be decoded. May be null.null if the parameter was
null.DecodeException - in case something goes wrong@Nullable @ReturnsMutableCopy char[] getDecoded(@Nullable char[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
aEncodedBuffer - The char array to be decoded. 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.DecodeException - in case something goes wrong@Nullable @ReturnsMutableCopy default char[] getDecoded(@Nullable String sEncoded)
sEncoded - The string to be decoded. May be null.null if the input string is null.DecodeException - in case something goes wrongCopyright © 2014–2022 Philip Helger. All rights reserved.