public class Bytes_Hex
extends java.lang.Object
Constructor and Description |
---|
Bytes_Hex() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ByteArray2HexString(byte[] barray) |
static java.lang.String |
ByteArray2String(byte[] barray) |
static byte[] |
HexArray2ByteArray(char[] buf) |
static byte[] |
HexString2ByteArray(java.lang.String str) |
static java.lang.String |
HexString2String(java.lang.String hex) |
static byte[] |
makeByteArray(java.lang.String thepath) |
static byte[] |
String2ByteArray(java.lang.String s) |
static java.lang.String |
String2HexString(java.lang.String s) |
static byte[] |
Object2ByteArray(java.lang.Object o) |
static java.lang.Object |
ByteArray2Object(byte[] barray) |
public static void main(java.lang.String[] args)
public void debug()
public static byte[] String2ByteArray(java.lang.String s)
public static java.lang.String ByteArray2String(byte[] barray)
public static java.lang.String ByteArray2HexString(byte[] barray)
public static byte[] HexArray2ByteArray(char[] buf)
public static byte[] HexString2ByteArray(java.lang.String str)
public static java.lang.String String2HexString(java.lang.String s)
public static java.lang.String HexString2String(java.lang.String hex)
public static byte[] makeByteArray(java.lang.String thepath) Writes a file into a ByteArray
public static byte[] Object2ByteArray(java.lang.Object ob)
public static java.lang.Object ByteArray2Object(char[] buf) Works well in Application setting.
Needs path to Object subclass in Tomcat Setting