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

Method Zone

src/main/java/core/org/xbill/DNS/Zone.java:133–146  ·  view source on GitHub ↗

Creates a Zone from the records in the specified master file. @param zone The name of the zone. @param file The master file to read from. @see Master

(Name zone, String file)

Source from the content-addressed store, hash-verified

131 * @see Master
132 */
133public
134Zone(Name zone, String file) throws IOException {
135 data = new TreeMap();
136
137 if (zone == null)
138 throw new IllegalArgumentException("no zone name specified");
139 Master m = new Master(file, zone);
140 Record record;
141
142 origin = zone;
143 while ((record = m.nextRecord()) != null)
144 maybeAddRecord(record);
145 validate();
146}
147
148/**
149 * Creates a Zone from an array of records.

Callers

nothing calls this directly

Calls 6

nextRecordMethod · 0.95
maybeAddRecordMethod · 0.95
validateMethod · 0.95
fromXFRMethod · 0.95
newAXFRMethod · 0.95
setDClassMethod · 0.95

Tested by

no test coverage detected