public class ByteUtil
extends java.lang.Object
public static byte[] bytes(java.lang.String str)
str - the stringpublic static int memcmp(java.nio.ByteBuffer x,
java.nio.ByteBuffer y,
int count)
count bytes of two areas of memory. Returns
zero if they are the same, a value less than zero if x is
lexically less than y, or a value greater than zero if x
is lexically greater than y. Note that lexical order is determined
as if comparing unsigned char arrays.
Similar to memcmp.c.x - the first value to compare withy - the second value to compare againstcount - the number of bytes to compare