public class BinaryUtils
extends java.lang.Object
| コンストラクタと説明 |
|---|
BinaryUtils() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static byte[] |
fromBase64(java.lang.String b64Data)
Converts a Base64-encoded string to the original byte data.
|
static byte[] |
fromHex(java.lang.String hexData)
Converts a Hex-encoded data string to the original byte data.
|
static java.lang.String |
toBase64(byte[] data)
Converts byte data to a Base64-encoded string.
|
static java.lang.String |
toHex(byte[] data)
Converts byte data to a Hex-encoded string.
|
static java.io.InputStream |
toStream(java.nio.ByteBuffer byteBuffer)
Wraps a ByteBuffer in an InputStream.
|
public static java.lang.String toHex(byte[] data)
data - data to hex encode.public static byte[] fromHex(java.lang.String hexData)
hexData - hex-encoded data to decode.public static java.lang.String toBase64(byte[] data)
data - data to Base64 encode.public static byte[] fromBase64(java.lang.String b64Data)
b64Data - a Base64-encoded string to decode.public static java.io.InputStream toStream(java.nio.ByteBuffer byteBuffer)
byteBuffer - The ByteBuffer to wrap.