public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
asUtf8(byte[] bytes) |
static java.lang.String |
bytesToHex(byte[] bytes) |
static int |
bytesToInt(byte[] bytes) |
static int |
bytesToInt(byte b1,
byte b2,
byte b3,
byte b4) |
static long |
bytesToLong(byte[] bytes) |
static short |
bytesToShort(byte[] bytes) |
static short |
bytesToShort(byte b1,
byte b2) |
static long |
bytesToUint(byte[] bytes) |
static long |
bytesToUint(byte b1,
byte b2,
byte b3,
byte b4) |
static int |
bytesToUshort(byte[] bytes) |
static int |
bytesToUshort(byte b1,
byte b2) |
static AttributeStructure |
getAttrFromName(AttributeStructure[] attrs,
java.lang.String name) |
static void |
setTabSize(int indent) |
static java.lang.String |
tab(int num) |
public static void setTabSize(int indent)
public static java.lang.String tab(int num)
public static int bytesToInt(byte b1, byte b2, byte b3, byte b4)
public static int bytesToInt(byte[] bytes)
public static long bytesToUint(byte b1, byte b2, byte b3, byte b4)
public static long bytesToUint(byte[] bytes)
public static short bytesToShort(byte b1, byte b2)
public static short bytesToShort(byte[] bytes)
public static int bytesToUshort(byte b1, byte b2)
public static int bytesToUshort(byte[] bytes)
public static long bytesToLong(byte[] bytes)
public static java.lang.String bytesToHex(byte[] bytes)
public static java.lang.String asUtf8(byte[] bytes)
public static AttributeStructure getAttrFromName(AttributeStructure[] attrs, java.lang.String name)