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

Method toMasterFile

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

Returns the contents of the Zone in master file format.

()

Source from the content-addressed store, hash-verified

536 * Returns the contents of the Zone in master file format.
537 */
538public synchronized String
539toMasterFile() {
540 Iterator zentries = data.entrySet().iterator();
541 StringBuffer sb = new StringBuffer();
542 nodeToString(sb, originNode);
543 while (zentries.hasNext()) {
544 Map.Entry entry = (Map.Entry) zentries.next();
545 if (!origin.equals(entry.getKey()))
546 nodeToString(sb, entry.getValue());
547 }
548 return sb.toString();
549}
550
551/**
552 * Returns the contents of the Zone as a string (in master file format).

Callers 1

toStringMethod · 0.95

Calls 9

nodeToStringMethod · 0.95
entrySetMethod · 0.80
hasNextMethod · 0.80
nextMethod · 0.80
iteratorMethod · 0.45
equalsMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected