(Tokenizer st, Name origin)
| 60 | } |
| 61 | |
| 62 | void |
| 63 | rdataFromString(Tokenizer st, Name origin) throws IOException { |
| 64 | prefixBits = st.getUInt8(); |
| 65 | if (prefixBits > 128) { |
| 66 | throw st.exception("prefix bits must be [0..128]"); |
| 67 | } else if (prefixBits < 128) { |
| 68 | String s = st.getString(); |
| 69 | try { |
| 70 | suffix = Address.getByAddress(s, Address.IPv6); |
| 71 | } |
| 72 | catch (UnknownHostException e) { |
| 73 | throw st.exception("invalid IPv6 address: " + s); |
| 74 | } |
| 75 | } |
| 76 | if (prefixBits > 0) |
| 77 | prefix = st.getName(origin); |
| 78 | } |
| 79 | |
| 80 | /** Converts rdata to a String */ |
| 81 | String |
nothing calls this directly
no test coverage detected