Constructs and returns the next record in the expansion. @throws IOException The name or rdata was invalid after substitutions were performed.
()
| 212 | * performed. |
| 213 | */ |
| 214 | public Record |
| 215 | nextRecord() throws IOException { |
| 216 | if (current > end) |
| 217 | return null; |
| 218 | String namestr = substitute(namePattern, current); |
| 219 | Name name = Name.fromString(namestr, origin); |
| 220 | String rdata = substitute(rdataPattern, current); |
| 221 | current += step; |
| 222 | return Record.fromString(name, type, dclass, ttl, rdata, origin); |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Constructs and returns all records in the expansion. |
nothing calls this directly
no test coverage detected