@FunctionalInterface public interface ICharArrayStreamDecoder extends ICharArrayDecoder
| Modifier and Type | Method and Description |
|---|---|
void |
decode(char[] aEncodedBuffer,
int nOfs,
int nLen,
Writer aWriter)
Decode (part of) a char array.
|
default void |
decode(char[] aEncodedBuffer,
Writer aWriter)
Decode a char array.
|
default char[] |
getDecoded(char[] aEncodedBuffer,
int nOfs,
int nLen)
Decode a char array.
|
default String |
getDecodedAsString(char[] aEncodedBuffer) |
default String |
getDecodedAsString(char[] aEncodedBuffer,
int nOfs,
int nLen) |
default String |
getDecodedAsString(String sEncoded)
Decode the passed string.
|
getDecoded, getDecoded, getMaximumDecodedLengthdefault void decode(@Nullable char[] aEncodedBuffer, @Nonnull @WillNotClose Writer aWriter)
aEncodedBuffer - The char array to be decoded. May be null.aWriter - The output stream to write to. May not be null and is
NOT closed afterwards!DecodeException - in case something goes wrongvoid decode(@Nullable char[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen, @Nonnull @WillNotClose Writer aWriter)
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.aWriter - The writer to write to. May not be null and is NOT
closed afterwards!DecodeException - in case something goes wrong@Nullable @ReturnsMutableCopy default char[] getDecoded(@Nullable char[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
getDecoded in interface ICharArrayDecoderaEncodedBuffer - 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 default String getDecodedAsString(@Nullable char[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
@Nullable default String getDecodedAsString(@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.