(Record record)
| 111 | } |
| 112 | |
| 113 | private final void |
| 114 | maybeAddRecord(Record record) throws IOException { |
| 115 | int rtype = record.getType(); |
| 116 | Name name = record.getName(); |
| 117 | |
| 118 | if (rtype == Type.SOA && !name.equals(origin)) { |
| 119 | throw new IOException("SOA owner " + name + |
| 120 | " does not match zone origin " + |
| 121 | origin); |
| 122 | } |
| 123 | if (name.subdomain(origin)) |
| 124 | addRecord(record); |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Creates a Zone from the records in the specified master file. |