|
AXL Software™ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectUtil
TACACS++ utilities class.
| Constructor Summary | |
Util()
|
|
| Method Summary | |
static boolean |
cmp(byte[] a,
byte[] b)
Compare two byte arrays. |
static boolean |
cmp(byte[] a,
int startA,
byte[] b,
int startB,
int length)
Compare two byte arrays over a region. |
static boolean |
isPrintableASCII(byte[] b,
int start,
int length)
Determine if a byte array is printable (eg ASCII-printable). |
static String |
toASCII(byte[] b)
Convert a byte array to a string using ASCII encoding. |
static byte[] |
toASCII(String s)
Convert a string to bytes encoded using ASCII, the TACACS+ protocol standard encoding. |
static String |
toHexString(byte[] buf)
Convert a byte buffer to a hex string. |
static String |
toHexString(byte[] buf,
int start,
int length)
Convert a byte buffer to a hex string. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Util()
| Method Detail |
public static byte[] toASCII(String s)
s - String to convert to a ASCII byte array.
public static String toASCII(byte[] b)
b - Byte array to convert.
public static String toHexString(byte[] buf)
buf - Byte array.
public static String toHexString(byte[] buf,
int start,
int length)
buf - Byte array.start - Start position in array.length - Number of bytes to display.
public static boolean cmp(byte[] a,
byte[] b)
a - array ab - array b
public static boolean cmp(byte[] a,
int startA,
byte[] b,
int startB,
int length)
a - Array A.startA - The start position for comparing A.b - Array B.startB - The start position for comparing B.length - Length of region.
public static boolean isPrintableASCII(byte[] b,
int start,
int length)
b - Bytes to test.start - start position.length - Length to test.
|
AXL Software™ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||