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

Method rdataFromString

src/main/java/core/org/xbill/DNS/NXTRecord.java:56–70  ·  view source on GitHub ↗
(Tokenizer st, Name origin)

Source from the content-addressed store, hash-verified

54}
55
56void
57rdataFromString(Tokenizer st, Name origin) throws IOException {
58 next = st.getName(origin);
59 bitmap = new BitSet();
60 while (true) {
61 Tokenizer.Token t = st.get();
62 if (!t.isString())
63 break;
64 int typecode = Type.value(t.value, true);
65 if (typecode <= 0 || typecode > 128)
66 throw st.exception("Invalid type: " + t.value);
67 bitmap.set(typecode);
68 }
69 st.unget();
70}
71
72/** Converts rdata to a String */
73String

Callers

nothing calls this directly

Calls 7

valueMethod · 0.95
isStringMethod · 0.80
exceptionMethod · 0.80
ungetMethod · 0.80
getNameMethod · 0.65
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected