public interface ICodec extends IByteArrayEncoder, IByteArrayDecoder
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(String sEncoded,
Charset aCharset)
Decode the passed string.
|
byte[] |
encode(String sDecoded,
Charset aCharset)
Encode the passed string.
|
encodedecode@Nullable byte[] encode(@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.EncoderException - In case something goes wrong@Nullable byte[] decode(@Nullable String sEncoded, @Nonnull Charset aCharset)
sEncoded - The string to be decoded. May be null.aCharset - The charset to be used. May not be null.null if the input string is null.DecoderException - in case something goes wrongCopyright © 2006–2014 phloc systems. All rights reserved.