|
nanoJBlend | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.co.aplix.extra.util.HexUtil
public final class HexUtil
HexUtil クラスはデータを16進文字列に変換する機能を提供します。
| メソッドの概要 | |
|---|---|
static boolean |
compare(byte[] x,
byte[] y)
二つのバイト列を比較します。 |
static boolean |
compare(byte[] x,
int xstart,
byte[] y,
int ystart,
int length)
二つのバイト配列の一部分を比較します。 |
static void |
dump(byte[] b)
指定されたバイト列を System.out に 16 進ダンプします。 |
static void |
dump(byte[] b,
int addr,
int length)
指定されたバイト配列の指定された領域を System.out に 16 進ダンプします。 |
static void |
dump(int[] b)
指定された int 配列を System.out に 16 進ダンプします。 |
static void |
dump(int[] b,
int addr,
int length)
指定された int 配列の指定された領域を System.out に 16 進ダンプします。 |
static String |
toHexString(byte b)
指定されたバイトを表現する小文字の16進文字列を返します。 |
static String |
toHexString(int v)
指定された int を表現する小文字の16進文字列を返します。 |
static String |
toHexString(long v)
指定された long を表現する小文字の16進文字列を返します。 |
static String |
toHexStringUpper(byte b)
指定されたバイトを表現する大文字の16進文字列を返します。 |
static String |
toHexStringUpper(int v)
指定された int を表現する大文字の16進文字列を返します。 |
static String |
toHexStringUpper(long v)
指定された long を表現する大文字の16進文字列を返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| メソッドの詳細 |
|---|
public static boolean compare(byte[] x,
byte[] y)
x - 比較するバイト列y - 比較するバイト列
x、y のバイト列の長さと各要素が一致する場合は true、そうでない場合は false
public static boolean compare(byte[] x,
int xstart,
byte[] y,
int ystart,
int length)
x - 比較するバイト列xstart - 配列 x で比較を開始するインデックスy - 比較するバイト列ystart - 配列 y で比較を開始するインデックスlength - 比較するバイト数。
このパラメータに0を指定した場合、戻り値はtrueとなります。
x、y のバイト配列の比較範囲での各要素が一致する場合は true、そうでない場合は falsepublic static void dump(byte[] b)
System.out に 16 進ダンプします。
b - ダンプするバイト列
public static void dump(byte[] b,
int addr,
int length)
System.out に 16 進ダンプします。
b - バイト配列addr - ダンプを開始するインデックスlength - ダンプするバイト数public static void dump(int[] b)
int 配列を System.out に 16 進ダンプします。
b - ダンプする int 配列
public static void dump(int[] b,
int addr,
int length)
int 配列の指定された領域を System.out に 16 進ダンプします。
b - int 配列addr - ダンプを開始するインデックスlength - ダンプする int の個数public static String toHexString(byte b)
b - バイト
b を16進で表現した小文字で2文字の文字列。public static String toHexStringUpper(byte b)
b - the byte.
b を16進で表現した大文字で2文字の文字列。public static String toHexString(int v)
int を表現する小文字の16進文字列を返します。
v - int 値
v を16進で表現した小文字で8文字の文字列。public static String toHexStringUpper(int v)
int を表現する大文字の16進文字列を返します。
v - int 値
v を16進で表現した大文字で8文字の文字列。public static String toHexString(long v)
long を表現する小文字の16進文字列を返します。
v - long 値
v を16進で表現した小文字で16文字の文字列。public static String toHexStringUpper(long v)
long を表現する大文字の16進文字列を返します。
v - long 値
v を16進で表現した大文字で16文字の文字列。
|
nanoJBlend | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||