public interface IByteArrayEncoder extends IEncoder<byte[]>
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded(byte[] aDecodedBuffer)
Encode a byte array.
|
byte[] |
getEncoded(String sDecoded,
Charset aCharset)
Encode the passed string.
|
@Nullable @ReturnsMutableCopy byte[] getEncoded(@Nullable byte[] aDecodedBuffer)
getEncoded in interface IEncoder<byte[]>aDecodedBuffer - The byte array to be encoded. May be null.null if the parameter was
null.EncodeException - In case something goes wrong@Nullable @ReturnsMutableCopy byte[] getEncoded(@Nullable String sDecoded, @Nonnull Charset aCharset)
sDecoded - The string to be encoded. May be null.aCharset - The charset to be used. May not be null.null if the input string is null.EncodeException - In case something goes wrongCopyright © 2014–2016 Philip Helger. All rights reserved.