jp.veritrans.tercerog.mdk.util
クラス HexUtil

java.lang.Object
  上位を拡張 jp.veritrans.tercerog.mdk.util.HexUtil

public final class HexUtil
extends Object

16進数表記の文字列を扱うクラス。

バージョン:
1.0
作成者:
Veritrnas Inc

メソッドの概要
static void appendHex(StringBuffer sb, byte b)
          指定した文字列に数値を16進数に変換した文字列を追加します。
static byte[] toBytes(String value)
          16進数表記の文字列をバイト配列に変換する。
static String toString(byte[] bytes)
          バイト配列を16進数表記の文字列に変換します。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

toBytes

public static byte[] toBytes(String value)
16進数表記の文字列をバイト配列に変換する。

パラメータ:
value - 16進数の文字列
戻り値:
バイト配列

toString

public static String toString(byte[] bytes)
バイト配列を16進数表記の文字列に変換します。

パラメータ:
bytes - バイト配列
戻り値:
16進数の文字列

appendHex

public static void appendHex(StringBuffer sb,
                             byte b)
指定した文字列に数値を16進数に変換した文字列を追加します。

パラメータ:
sb - 追加先の文字列
b - 数値


Copyright © 2017. All rights reserved.