public static String convertToString ( byte [ ] uuid ) { if ( uuid . length != 16 ) throw Messages . MESSAGES . uuidMustBeOf16Bytes ( ) ; String string = bytesToHex ( uuid , 0 , 4 ) + "-" + bytesToHex ( uuid , 4 , 2 ) + "-" + bytesToHex ( uuid , 6 , 2 ) + "-" + bytesToHex ( uuid , 8 , 2 ) + "-" + bytesToHex ( uuid , 10 , 6 ) ; return string ; }
Converts a UUID in byte array form to the IETF string format .