public final class HexUtil extends Object
修飾子とタイプ | メソッドと説明 |
---|---|
static void |
appendHex(StringBuffer sb,
byte b)
指定した文字列に数値を16進数に変換した文字列を追加します。
|
static byte[] |
toBytes(String value)
16進数表記の文字列をバイト配列に変換する。
|
static String |
toString(byte[] bytes)
バイト配列を16進数表記の文字列に変換します。
|
public static byte[] toBytes(String value)
value
- 16進数の文字列public static String toString(byte[] bytes)
bytes
- バイト配列public static void appendHex(StringBuffer sb, byte b)
sb
- 追加先の文字列b
- 数値Copyright © 2024. All rights reserved.