Changeset 5589 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2012-11-18T13:57:36+01:00 (13 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/tools/Utils.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r5587 r5589 362 362 /** 363 363 * Calculate MD5 hash of a string and output in hexadecimal format. 364 * Output has length 32 with characters in range [0-9a-f] 364 * @param data arbitrary String 365 * @return MD5 hash of data, string of length 32 with characters in range [0-9a-f] 365 366 */ 366 367 public static String md5Hex(String data) { … … 382 383 383 384 /** 384 * Converts a byte array to a string of hexadecimal characters. Preserves leading zeros, so the 385 * size of the output string is always twice the number of input bytes. 385 * Converts a byte array to a string of hexadecimal characters. 386 * Preserves leading zeros, so the size of the output string is always twice 387 * the number of input bytes. 388 * @param bytes the byte array 389 * @return hexadecimal representation 386 390 */ 387 391 public static String toHexString(byte[] bytes) {
Note:
See TracChangeset
for help on using the changeset viewer.
