Subversion Repository Public Repository

litesoft

Diff Revisions 810 vs 811 for /trunk/Java/core/Server/src/org/litesoft/orsup/nonpublic/Blob.java

Diff revisions: vs.
  @@ -329,8 +329,8 @@
329 329 int from = 0;
330 330 for ( int i = 0; i < bLen; i++ )
331 331 {
332 - int zByte = Utils.fromHexDigit( zHex.charAt( from++ ) ) << 4;
333 - zByte += Utils.fromHexDigit( zHex.charAt( from++ ) );
332 + int zByte = Hex.fromCharChecked( zHex.charAt( from++ ) ) << 4;
333 + zByte += Hex.fromCharChecked( zHex.charAt( from++ ) );
334 334 zBytes[i] = (byte) zByte;
335 335 }
336 336 return zBytes;
  @@ -342,8 +342,8 @@
342 342 while ( pCount-- > 0 )
343 343 {
344 344 int zByte = (pBytes[pOffset++] & 0xFF);
345 - sb.append( Utils.toHexDigit( zByte >> 4 ) );
346 - sb.append( Utils.toHexDigit( zByte ) );
345 + sb.append( Hex.toChar( zByte >> 4 ) );
346 + sb.append( Hex.toChar( zByte ) );
347 347 }
348 348 return sb.toString();
349 349 }