|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsmpp.util.HexUtil
public class HexUtil
The Hex utility.
| Field Summary | |
|---|---|
private static char[] |
hexChar
|
| Constructor Summary | |
|---|---|
HexUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
conventBytesToHexString(byte[] data)
Convert bytes to hex string. |
static java.lang.String |
convertBytesToHexString(byte[] data,
int offset,
int length)
Convert bytes to hex string value (using Big-Endian rule). |
static java.lang.String |
convertBytesToHexString(byte[] data,
int offset,
int length,
java.lang.String byteDelimiter)
|
static byte[] |
convertHexStringToBytes(java.lang.String hexString)
Convert the hex string to bytes. |
static byte[] |
convertHexStringToBytes(java.lang.String hexString,
int offset,
int endIndex)
Convert the hex string to bytes. |
static java.lang.String |
convertHexStringToString(java.lang.String hexString)
Convert the hex string to string. |
static java.lang.String |
convertStringToHexString(java.lang.String data)
Convert the string to hex string value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final char[] hexChar
| Constructor Detail |
|---|
public HexUtil()
| Method Detail |
|---|
public static java.lang.String convertStringToHexString(java.lang.String data)
data - is case sensitive.
public static java.lang.String conventBytesToHexString(byte[] data)
data - is the bytes.
public static java.lang.String convertBytesToHexString(byte[] data,
int offset,
int length)
data - is the bytes.offset - is the offset.length - is the length.
public static java.lang.String convertBytesToHexString(byte[] data,
int offset,
int length,
java.lang.String byteDelimiter)
public static java.lang.String convertHexStringToString(java.lang.String hexString)
hexString - is the hex string.
public static byte[] convertHexStringToBytes(java.lang.String hexString)
hexString - is the hex string.
public static byte[] convertHexStringToBytes(java.lang.String hexString,
int offset,
int endIndex)
hexString - is the hex string.offset - is the offset.endIndex - is the end index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||