MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / nextRecord

Method nextRecord

src/main/java/core/org/xbill/DNS/Generator.java:214–223  ·  view source on GitHub ↗

Constructs and returns the next record in the expansion. @throws IOException The name or rdata was invalid after substitutions were performed.

()

Source from the content-addressed store, hash-verified

212 * performed.
213 */
214public Record
215nextRecord() throws IOException {
216 if (current > end)
217 return null;
218 String namestr = substitute(namePattern, current);
219 Name name = Name.fromString(namestr, origin);
220 String rdata = substitute(rdataPattern, current);
221 current += step;
222 return Record.fromString(name, type, dclass, ttl, rdata, origin);
223}
224
225/**
226 * Constructs and returns all records in the expansion.

Callers

nothing calls this directly

Calls 3

substituteMethod · 0.95
fromStringMethod · 0.95
fromStringMethod · 0.95

Tested by

no test coverage detected