public static Guid getGuidFromUncompressedString ( String uncompressedGuidString ) { String [ ] parts = uncompressedGuidString . split ( "-" ) ; Guid guid = new Guid ( ) ; guid . Data1 = Long . parseLong ( parts [ 0 ] , 16 ) ; guid . Data2 = Integer . parseInt ( parts [ 1 ] , 16 ) ; guid . Data3 = Integer . parseInt ( parts [ 2 ] , 16 ) ; String temp ; temp = parts [ 3 ] ; guid . Data4 [ 0 ] = ( char ) Integer . parseInt ( temp . substring ( 0 , 2 ) , 16 ) ; guid . Data4 [ 1 ] = ( char ) Integer . parseInt ( temp . substring ( 2 , 4 ) , 16 ) ; temp = parts [ 4 ] ; guid . Data4 [ 2 ] = ( char ) Integer . parseInt ( temp . substring ( 0 , 2 ) , 16 ) ; guid . Data4 [ 3 ] = ( char ) Integer . parseInt ( temp . substring ( 2 , 4 ) , 16 ) ; guid . Data4 [ 4 ] = ( char ) Integer . parseInt ( temp . substring ( 4 , 6 ) , 16 ) ; guid . Data4 [ 5 ] = ( char ) Integer . parseInt ( temp . substring ( 6 , 8 ) , 16 ) ; guid . Data4 [ 6 ] = ( char ) Integer . parseInt ( temp . substring ( 8 , 10 ) , 16 ) ; guid . Data4 [ 7 ] = ( char ) Integer . parseInt ( temp . substring ( 10 , 12 ) , 16 ) ; return guid ; }
Converts an uncompressed String representation in an Guid - object