public class EncodeDecodeHelper extends Object
| Constructor and Description |
|---|
EncodeDecodeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] input,
EncodeDecodeTypes decodingType)
Decodes the provided byte array using the specified decoding type.
|
static byte[] |
encode(byte[] input,
EncodeDecodeTypes encodingType)
Encodes the provided byte array using the specified encoding type.
|
public static byte[] encode(byte[] input,
EncodeDecodeTypes encodingType)
input - The byte array to encodeencodingType - The encoding to useIllegalArgumentException - if the specified decodingType is not supportedpublic static byte[] decode(byte[] input,
EncodeDecodeTypes decodingType)
input - The byte array to decodedecodingType - The decoding type to useIllegalArgumentException - if the specified decodingType is not supportedCopyright © 2005–2019 Apache Software Foundation. All rights reserved.