Returns the contents of the Zone in master file format.
()
| 536 | * Returns the contents of the Zone in master file format. |
| 537 | */ |
| 538 | public synchronized String |
| 539 | toMasterFile() { |
| 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). |