net.y3n20u.util
クラス ByteHelper

java.lang.Object
  上位を拡張 net.y3n20u.util.ByteHelper

public class ByteHelper
extends Object


コンストラクタの概要
ByteHelper()
           
 
メソッドの概要
static byte[] concatByteArrays(byte[]... byteArrays)
           
static byte[] concatByteArrays(int totalLength, byte[]... byteArrays)
           
static byte[] getBytes(String str)
          get a byte array from hex string. white spaces (\\s) will be ignored.
static String getHexString(byte[] data)
           
static byte[] xorTwoByteArrays(byte[] formerByteArray, byte[] latterByteArray)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ByteHelper

public ByteHelper()
メソッドの詳細

getBytes

public static byte[] getBytes(String str)
get a byte array from hex string. white spaces (\\s) will be ignored.

パラメータ:
str - source string. the length (except for white spaces) must an even number.
戻り値:

getHexString

public static String getHexString(byte[] data)

concatByteArrays

public static byte[] concatByteArrays(byte[]... byteArrays)

concatByteArrays

public static byte[] concatByteArrays(int totalLength,
                                      byte[]... byteArrays)

xorTwoByteArrays

public static byte[] xorTwoByteArrays(byte[] formerByteArray,
                                      byte[] latterByteArray)