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

Method fromXFR

src/main/java/core/org/xbill/DNS/Zone.java:166–180  ·  view source on GitHub ↗
(ZoneTransferIn xfrin)

Source from the content-addressed store, hash-verified

164}
165
166private void
167fromXFR(ZoneTransferIn xfrin) throws IOException, ZoneTransferException {
168 data = new TreeMap();
169
170 origin = xfrin.getName();
171 List records = xfrin.run();
172 for (Iterator it = records.iterator(); it.hasNext(); ) {
173 Record record = (Record) it.next();
174 maybeAddRecord(record);
175 }
176 if (!xfrin.isAXFR())
177 throw new IllegalArgumentException("zones can only be " +
178 "created from AXFRs");
179 validate();
180}
181
182/**
183 * Creates a Zone by doing the specified zone transfer.

Callers 1

ZoneMethod · 0.95

Calls 8

maybeAddRecordMethod · 0.95
validateMethod · 0.95
hasNextMethod · 0.80
nextMethod · 0.80
isAXFRMethod · 0.80
getNameMethod · 0.65
runMethod · 0.45
iteratorMethod · 0.45

Tested by

no test coverage detected