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

Method toString

src/main/java/core/org/xbill/DNS/RRset.java:239–256  ·  view source on GitHub ↗

Converts the RRset to a String

()

Source from the content-addressed store, hash-verified

237
238/** Converts the RRset to a String */
239public String
240toString() {
241 if (rrs.size() == 0)
242 return ("{empty}");
243 StringBuffer sb = new StringBuffer();
244 sb.append("{ ");
245 sb.append(getName() + " ");
246 sb.append(getTTL() + " ");
247 sb.append(DClass.string(getDClass()) + " ");
248 sb.append(Type.string(getType()) + " ");
249 sb.append(iteratorToString(iterator(true, false)));
250 if (nsigs > 0) {
251 sb.append(" sigs: ");
252 sb.append(iteratorToString(iterator(false, false)));
253 }
254 sb.append(" }");
255 return sb.toString();
256}
257
258}

Callers 1

iteratorToStringMethod · 0.45

Calls 10

getNameMethod · 0.95
getTTLMethod · 0.95
stringMethod · 0.95
getDClassMethod · 0.95
stringMethod · 0.95
getTypeMethod · 0.95
iteratorToStringMethod · 0.95
iteratorMethod · 0.95
sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected