|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.security.HexEncoding
public class HexEncoding
Encode / Decode hexadecimal strings to / from byte arrays
| Method Summary | |
|---|---|
static byte[] |
hexDecode(String str)
Decode a string containing hexadecimal characters into a byte array. |
static String |
hexEncode(byte[] b)
Create a string containing the all of the data in the byte array b, encoded as hexadecimal characters. |
static String |
hexEncode(byte[] b,
int len)
Create a string containing the data in the byte array b, encoded as hexadecimal characters. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] hexDecode(String str)
str - the string containing hexadecimal characters
public static String hexEncode(byte[] b)
b, encoded as hexadecimal characters.
b - the data to encode
public static String hexEncode(byte[] b,
int len)
b, encoded as hexadecimal characters.
b - the data to encodelen - encode bytes 0 to len-1
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||