|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jguild.jrpm.io.datatype.RPMUtil
Misc utilities functions.
Constructor Summary | |
RPMUtil()
|
Method Summary | |
static java.lang.String |
byteArrayToHexString(byte[] barray)
Method to get a beautyfied representation of an byte array as a hex string. |
static java.lang.String |
byteToHexString(byte b)
Method to get a beautyfied representation of a byte as a hex string. |
static java.lang.String |
cArrayToString(byte[] data,
int offset)
Method to convert a null terminated C string into a java string using the DEFAULT_ENCODING |
static java.lang.String |
cArrayToString(byte[] data,
int offset,
java.lang.String enc)
Method to convert a null terminated C string into a java string using the defined encoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RPMUtil()
Method Detail |
public static java.lang.String byteArrayToHexString(byte[] barray)
barray
- An byte array that should be converted to a hex string
public static java.lang.String byteToHexString(byte b)
b
- A byte that should be converted to a hex string
public static java.lang.String cArrayToString(byte[] data, int offset) throws java.io.UnsupportedEncodingException
data
- An array of bytes containing a C stringoffset
- An offset from which to start to read the string from the data array
java.io.UnsupportedEncodingException
public static java.lang.String cArrayToString(byte[] data, int offset, java.lang.String enc) throws java.io.UnsupportedEncodingException
data
- An array of bytes containing a C stringoffset
- An offset from which to start to read the string from the data arrayenc
- A encoding as defined in java.lang.String
java.io.UnsupportedEncodingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |