|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.fingo.util.Converter
public class Converter
Utility class with methods for converting binary values to strings for the use of MS SQL Server GUID fields
| Constructor Summary | |
|---|---|
Converter()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
byteArrayToHexString(byte[] in)
Converts the given byte array to a hexadecimal string |
static java.lang.String |
formatSQLServerGUID(java.lang.String guid)
Converts the given hexadecimal string to the MS SQL Server format |
static byte[] |
hexStringToByteArray(java.lang.String str)
Converts the given hexadecimal string to a byte array |
static byte[] |
invertSQLServerByteArray(byte[] arr)
Inverts the first three blocks of bytes in a byte array (needed for SQL Server) |
static void |
reverseByteArray(byte[] b)
|
static java.lang.String |
unformatSQLServerGUID(java.lang.String guid)
Converts a hexadecimal GUID string in MS SQL Server style to a typical hexadecimal string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Converter()
| Method Detail |
|---|
public static java.lang.String byteArrayToHexString(byte[] in)
in - the byte array to be converted
public static byte[] hexStringToByteArray(java.lang.String str)
str - The string to be converted
public static java.lang.String unformatSQLServerGUID(java.lang.String guid)
guid - GUID value in MS SQL Server format
public static java.lang.String formatSQLServerGUID(java.lang.String guid)
guid - The hexadecimal string to be formatted
public static byte[] invertSQLServerByteArray(byte[] arr)
arr - The byte array to be inverted
public static void reverseByteArray(byte[] b)
b -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||