public class Codecs extends Object
Base64
and Hex
classes.Modifier and Type | Method and Description |
---|---|
static byte[] |
base64ToBytes(String data)
Converts the given base
64 string into a byte array. |
static double[] |
base64ToDoubles(String data)
Converts the given base
64 string into a double array. |
static double[] |
base64ToDoubles(String data,
ByteOrder byteOrder)
Converts the given base
64 string into a double array. |
static int[] |
base64ToInts(String data)
Converts the given base
64 string into an int array. |
static int[] |
base64ToInts(String data,
ByteOrder byteOrder)
Converts the given base
64 string into an int array. |
static long[] |
base64ToLongs(String data)
Converts the given base
64 string into a long array. |
static long[] |
base64ToLongs(String data,
ByteOrder byteOrder)
Converts the given base
64 string into a long array. |
static String |
bytesToBase64(byte[] data)
Converts the given
byte array into a base 64 string. |
static String |
bytesToHex(byte[] data)
Converts the given
byte array into a hex string. |
static String |
doublesToBase64(double[] values)
Converts the given
double array into a base 64 string. |
static String |
doublesToBase64(double[] values,
ByteOrder byteOrder)
Converts the given
double array into a base 64 string. |
static byte[] |
hexToBytes(String data)
Converts the given hex string into a
byte array. |
static String |
intsToBase64(int[] values)
Converts the given
int array into a base 64 string. |
static String |
intsToBase64(int[] values,
ByteOrder byteOrder)
Converts the given
int array into a base 64 string. |
static String |
longsToBase64(long[] values)
Converts the given
long array into a base 64 string. |
static String |
longsToBase64(long[] values,
ByteOrder byteOrder)
Converts the given
long array into a base 64 string. |
public static final byte[] base64ToBytes(String data)
64
string into a byte
array.data
- the data.byte
array.public static final String bytesToBase64(byte[] data)
byte
array into a base 64
string.data
- the data.64
string.public static final double[] base64ToDoubles(String data, ByteOrder byteOrder)
64
string into a double
array.data
- the data.byteOrder
- the Endianness.double
array.public static final double[] base64ToDoubles(String data)
64
string into a double
array.data
- the data.double
array.public static final String doublesToBase64(double[] values, ByteOrder byteOrder)
double
array into a base 64
string.values
- the values.byteOrder
- the Endianness.64
string.public static final String doublesToBase64(double[] values)
double
array into a base 64
string.values
- the values.64
string.public static final int[] base64ToInts(String data, ByteOrder byteOrder)
64
string into an int
array.data
- the data.byteOrder
- the Endianness.int
array.public static final int[] base64ToInts(String data)
64
string into an int
array.data
- the data.int
array.public static final String intsToBase64(int[] values, ByteOrder byteOrder)
int
array into a base 64
string.values
- the values.byteOrder
- the Endianness.64
string.public static final String intsToBase64(int[] values)
int
array into a base 64
string.values
- the values.64
string.public static final long[] base64ToLongs(String data, ByteOrder byteOrder)
64
string into a long
array.data
- the data.byteOrder
- the Endianness.long
array.public static final long[] base64ToLongs(String data)
64
string into a long
array.data
- the data.long
array.public static final String longsToBase64(long[] values, ByteOrder byteOrder)
long
array into a base 64
string.values
- the values.byteOrder
- the Endianness.64
string.public static final String longsToBase64(long[] values)
long
array into a base 64
string.values
- the values.64
string.public static final byte[] hexToBytes(String data)
byte
array.data
- the data.byte
array.public static final String bytesToHex(byte[] data)
byte
array into a hex string.data
- the data.