|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.sharedutil.HexDumper
public final class HexDumper
Utility class for converting a byte array to a hex-formatted string.
| Method Summary | |
|---|---|
static String |
format(byte[] bytes)
Returns a string constructed with the contents of the byte array converted to hex format. |
static String |
format(byte[] bytes,
int limit)
Returns a string constructed with the contents of the byte array converted to hex format. |
static String |
format(ByteBuffer buf)
Returns a string constructed with the contents of the ByteBuffer converted to hex format. |
static String |
format(ByteBuffer buf,
int limit)
Returns a string constructed with the contents of the ByteBuffer converted to hex format. |
static byte[] |
fromHexString(String hexString)
Returns a byte array constructed with the contents of the given string, which contains a series of byte values in hex format. |
static String |
toHexString(byte[] bytes)
Returns a string constructed with the contents of the byte array converted to hex format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String format(byte[] bytes)
bytes - a byte array to format
public static String format(byte[] bytes,
int limit)
bytes - a byte array to formatlimit - the maximum number of bytes to format, or 0
meaning unlimited
public static String format(ByteBuffer buf)
buf - a buffer to format
public static String format(ByteBuffer buf,
int limit)
buf - a buffer to formatlimit - the maximum number of bytes to format, or 0
meaning unlimited
public static String toHexString(byte[] bytes)
bytes - a byte array to convert
public static byte[] fromHexString(String hexString)
hexString - a string to convert
NumberFormatException - if the String
does not contain a parsable series of hex-formatted
values int
|
Project Darkstar, Version 0.9.10 2013-07-29 20:59:02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||