/** * Decodes part of a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump, int fromIndex, int length) { return StringUtil.decodeHexDump(hexDump, fromIndex, length); }
/** * Decodes part of a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump, int fromIndex, int length) { return StringUtil.decodeHexDump(hexDump, fromIndex, length); }
/** * Decodes a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump) { return StringUtil.decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a <a href="http://en.wikipedia.org/wiki/Hex_dump">hex dump</a> */ public static byte[] decodeHexDump(CharSequence hexDump) { return decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes part of a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump, int fromIndex, int length) { return StringUtil.decodeHexDump(hexDump, fromIndex, length); }
/** * Decodes a <a href="http://en.wikipedia.org/wiki/Hex_dump">hex dump</a> */ public static byte[] decodeHexDump(CharSequence hexDump) { return decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump) { return StringUtil.decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump) { return StringUtil.decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a <a href="http://en.wikipedia.org/wiki/Hex_dump">hex dump</a> */ public static byte[] decodeHexDump(CharSequence hexDump) { return decodeHexDump(hexDump, 0, hexDump.length()); }
private static byte[][] toFingerprintArray(Iterable<String> fingerprints) { if (fingerprints == null) { throw new NullPointerException("fingerprints"); } List<byte[]> list = new ArrayList<byte[]>(); for (String f: fingerprints) { if (f == null) { break; } if (!FINGERPRINT_PATTERN.matcher(f).matches()) { throw new IllegalArgumentException("malformed fingerprint: " + f); } f = FINGERPRINT_STRIP_PATTERN.matcher(f).replaceAll(""); if (f.length() != SHA1_HEX_LEN) { throw new IllegalArgumentException("malformed fingerprint: " + f + " (expected: SHA1)"); } list.add(StringUtil.decodeHexDump(f)); } return list.toArray(new byte[0][]); }
private static byte[][] toFingerprintArray(Iterable<String> fingerprints) { if (fingerprints == null) { throw new NullPointerException("fingerprints"); } List<byte[]> list = new ArrayList<byte[]>(); for (String f: fingerprints) { if (f == null) { break; } if (!FINGERPRINT_PATTERN.matcher(f).matches()) { throw new IllegalArgumentException("malformed fingerprint: " + f); } f = FINGERPRINT_STRIP_PATTERN.matcher(f).replaceAll(""); if (f.length() != SHA1_HEX_LEN) { throw new IllegalArgumentException("malformed fingerprint: " + f + " (expected: SHA1)"); } list.add(StringUtil.decodeHexDump(f)); } return list.toArray(new byte[0][]); }
/** * Decodes part of a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump, int fromIndex, int length) { return StringUtil.decodeHexDump(hexDump, fromIndex, length); }
/** * Decodes a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump) { return StringUtil.decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a <a href="http://en.wikipedia.org/wiki/Hex_dump">hex dump</a> */ public static byte[] decodeHexDump(CharSequence hexDump) { return decodeHexDump(hexDump, 0, hexDump.length()); }
private static byte[][] toFingerprintArray(Iterable<String> fingerprints) { if (fingerprints == null) { throw new NullPointerException("fingerprints"); } List<byte[]> list = new ArrayList<byte[]>(); for (String f: fingerprints) { if (f == null) { break; } if (!FINGERPRINT_PATTERN.matcher(f).matches()) { throw new IllegalArgumentException("malformed fingerprint: " + f); } f = FINGERPRINT_STRIP_PATTERN.matcher(f).replaceAll(""); if (f.length() != SHA1_HEX_LEN) { throw new IllegalArgumentException("malformed fingerprint: " + f + " (expected: SHA1)"); } list.add(StringUtil.decodeHexDump(f)); } return list.toArray(new byte[0][]); }
/** * Decodes part of a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump, int fromIndex, int length) { return StringUtil.decodeHexDump(hexDump, fromIndex, length); }
/** * Decodes a <a href="http://en.wikipedia.org/wiki/Hex_dump">hex dump</a> */ public static byte[] decodeHexDump(CharSequence hexDump) { return decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a <a href="http://en.wikipedia.org/wiki/Hex_dump">hex dump</a> */ public static byte[] decodeHexDump(CharSequence hexDump) { return decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump) { return StringUtil.decodeHexDump(hexDump, 0, hexDump.length()); }
/** * Decodes a string generated by {@link #hexDump(byte[])} */ public static byte[] decodeHexDump(CharSequence hexDump) { return StringUtil.decodeHexDump(hexDump, 0, hexDump.length()); }