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

Method printFlags

src/main/java/core/org/xbill/DNS/Header.java:255–265  ·  view source on GitHub ↗

Converts the header's flags into a String

()

Source from the content-addressed store, hash-verified

253
254/** Converts the header's flags into a String */
255public String
256printFlags() {
257 StringBuffer sb = new StringBuffer();
258
259 for (int i = 0; i < 16; i++)
260 if (validFlag(i) && getFlag(i)) {
261 sb.append(Flags.string(i));
262 sb.append(" ");
263 }
264 return sb.toString();
265}
266
267String
268toStringWithRcode(int newrcode) {

Callers 1

toStringWithRcodeMethod · 0.95

Calls 5

validFlagMethod · 0.95
getFlagMethod · 0.95
stringMethod · 0.95
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected