parseRecord(DNSKEYRecord r) { int alg = r.getAlgorithm(); byte [] data = r.getKey(); return parseRecord(alg, data);
parseRecord(int alg, byte [] data) { ByteArrayInputStream bytes = new ByteArrayInputStream(data); DataInputStream in = new DataInputStream(bytes); try { switch (alg) { case DNSSEC.RSAMD5: case DNSSEC.RSASHA1: return parseRSA(in); case DNSSEC.DH: return parseDH(in); case DNSSEC.DSA: return parseDSA(in); default: return null; } } catch (IOException e) { if (Options.check("verboseexceptions")) System.err.println(e); return null; }
parseRecord(DNSKEYRecord r) {	int alg = r.getAlgorithm();	byte [] data = r.getKey();	return parseRecord(alg, data);}