public class BinaryUtils extends Object
Constructor and Description |
---|
BinaryUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fromBase64(String b64Data)
Base64エンコード文字列に変換をオリジナルのバイトデータに変換します。
|
static byte[] |
fromHex(String hexData)
16進数文字列をオリジナルのバイトデータに変換します。
|
static String |
toBase64(byte[] data)
バイトデータをBase64エンコード文字列に変換します。
|
static String |
toHex(byte[] data)
バイトデータを16進数文字列に変換します。
|
static InputStream |
toStream(ByteBuffer byteBuffer)
ByteBufferをInputStreamにラップします。
|
public static String toHex(byte[] data)
data
- 16進数に変換するデータ.public static byte[] fromHex(String hexData)
hexData
- 16進数文字列.public static String toBase64(byte[] data)
data
- Base64エンコード文字列に変換するデータ.public static byte[] fromBase64(String b64Data)
b64Data
- デコードするBase64エンコード文字列.public static InputStream toStream(ByteBuffer byteBuffer)
byteBuffer
- ラップするByteBuffer.Copyright © 2018. All rights reserved.