public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getChallenge(java.lang.String description) |
static java.lang.String |
getOpaque(java.lang.String description) |
static java.lang.String |
getSalt(java.lang.String description) |
static void |
readBytesUntilFull(java.io.InputStream in,
byte[] targetBuffer)
Reads bytes from the specified inputstream into the specified target buffer until it is filled up
|
static double |
readDouble(java.io.InputStream in) |
static int |
readUnsignedInt16(java.io.InputStream in) |
static int |
readUnsignedInt24(java.io.InputStream in) |
static int |
readUnsignedInt32(java.io.InputStream in) |
static java.lang.String |
stringToMD5BASE64(java.lang.String s) |
static byte[] |
toByteArray(double d) |
static java.lang.String |
toHexString(byte b) |
static java.lang.String |
toHexString(byte[] raw) |
static int |
toUnsignedInt16(byte[] bytes) |
static int |
toUnsignedInt24(byte[] bytes) |
static int |
toUnsignedInt32(byte[] bytes) |
static int |
toUnsignedInt32LittleEndian(byte[] bytes) |
static byte[] |
unsignedInt32ToByteArray(int value) |
static void |
writeDouble(java.io.OutputStream out,
double d) |
static void |
writeUnsignedInt16(java.io.OutputStream out,
int value) |
static void |
writeUnsignedInt24(java.io.OutputStream out,
int value) |
static void |
writeUnsignedInt32(java.io.OutputStream out,
int value) |
static void |
writeUnsignedInt32LittleEndian(java.io.OutputStream out,
int value) |
public static void writeUnsignedInt32(java.io.OutputStream out, int value) throws java.io.IOException
java.io.IOException
public static int readUnsignedInt32(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static int readUnsignedInt24(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static int readUnsignedInt16(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static void writeUnsignedInt24(java.io.OutputStream out, int value) throws java.io.IOException
java.io.IOException
public static void writeUnsignedInt16(java.io.OutputStream out, int value) throws java.io.IOException
java.io.IOException
public static int toUnsignedInt32(byte[] bytes)
public static int toUnsignedInt32LittleEndian(byte[] bytes)
public static void writeUnsignedInt32LittleEndian(java.io.OutputStream out, int value) throws java.io.IOException
java.io.IOException
public static int toUnsignedInt24(byte[] bytes)
public static int toUnsignedInt16(byte[] bytes)
public static java.lang.String toHexString(byte[] raw)
public static java.lang.String toHexString(byte b)
public static void readBytesUntilFull(java.io.InputStream in, byte[] targetBuffer) throws java.io.IOException
java.io.IOException
public static byte[] toByteArray(double d)
public static byte[] unsignedInt32ToByteArray(int value) throws java.io.IOException
java.io.IOException
public static double readDouble(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static void writeDouble(java.io.OutputStream out, double d) throws java.io.IOException
java.io.IOException
public static java.lang.String getSalt(java.lang.String description)
public static java.lang.String getChallenge(java.lang.String description)
public static java.lang.String getOpaque(java.lang.String description)
public static java.lang.String stringToMD5BASE64(java.lang.String s)