|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectUtils
public class Utils
This class contains a collection of helper methods.
| Field Summary | |
|---|---|
static String |
lineSeperator
|
| Method Summary | |
|---|---|
static byte |
booleanToByte(boolean value)
This method converts a Java boolean into a byte representation. |
static String |
booleanToString(boolean value)
This method returns a String representation (i.e. |
static String |
byteArrayToHexString(byte[] data)
This method returns a Hex-String of the provided byte array. |
static String |
byteArrayToHexString(byte[] data,
String delimiter,
int octetsPerLine)
This method returns a Hex-String of the provided byte array. |
static short[] |
byteArrayToShortArray(byte[] input)
This method converts a byte array into a short array. |
static boolean |
byteToBoolean(byte value)
This method converts a byte representation of a boolean value into the Java boolean type |
static String |
getFSep()
This method returns the platform specific character sequence for "new line". |
static String |
getNL()
This method returns the platform specific character sequence for "new line". |
static byte[] |
hexStringToByteArray(String data)
This method converts the given hex string into a byte array. |
static short[] |
hexStringToShortArray(String data)
This method converts the given hex string into a short array. |
static boolean |
longToBoolean(long value)
This method converts a short representation of a boolean value into the Java boolean type. |
static String |
longToHex(long value)
This method converts a long into an Hex-String of the form 0x1234. |
static String |
longToHexNoPrefix(long value)
This method converts a long into a Hex-String without leading 0x. |
static byte[] |
shortArrayToByteArray(short[] input)
This method returns a byte array of the provided short array. |
static String |
shortArrayToHexString(short[] data)
This method returns a Hex-String of the provided short array. |
static boolean |
shortToBoolean(short value)
This method converts a short representation of a boolean value into the Java boolean type. |
static short |
unsignedByteToShort(byte b)
This method converts an unsigned byte value into a short value. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String lineSeperator
| Method Detail |
|---|
public static boolean byteToBoolean(byte value)
public static boolean shortToBoolean(short value)
public static boolean longToBoolean(long value)
public static byte booleanToByte(boolean value)
public static String booleanToString(boolean value)
public static String longToHex(long value)
public static String longToHexNoPrefix(long value)
public static String getNL()
public static String getFSep()
public static short unsignedByteToShort(byte b)
public static short[] byteArrayToShortArray(byte[] input)
public static String byteArrayToHexString(byte[] data)
public static String byteArrayToHexString(byte[] data,
String delimiter,
int octetsPerLine)
public static byte[] hexStringToByteArray(String data)
public static String shortArrayToHexString(short[] data)
public static short[] hexStringToShortArray(String data)
public static byte[] shortArrayToByteArray(short[] input)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||