net.y3n20u.util
クラス ByteHelper
java.lang.Object
net.y3n20u.util.ByteHelper
public class ByteHelper
- extends Object
クラス 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)