|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchapter2.Utils
public class Utils
General utilities for the second chapter examples.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.lang.String |
toHex(byte[] data)
Return the passed in byte array as a hex string. |
static java.lang.String |
toHex(byte[] data,
int length)
Return length many bytes of the passed in byte array as a hex string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.lang.String toHex(byte[] data, int length)
data
- the bytes to be converted.length
- the number of bytes in the data block to be converted.
public static java.lang.String toHex(byte[] data)
data
- the bytes to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |