public class EncodeDecodeHelper
extends java.lang.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 usejava.lang.IllegalArgumentException
- if the specified decodingType is not supportedpublic static byte[] decode(byte[] input, EncodeDecodeTypes decodingType)
input
- The byte array to decodedecodingType
- The decoding type to usejava.lang.IllegalArgumentException
- if the specified decodingType is not supportedCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.