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

Method addRecord

src/main/java/core/org/xbill/DNS/Message.java:171–177  ·  view source on GitHub ↗

Adds a record to a section of the Message, and adjusts the header. @see Record @see Section

(Record r, int section)

Source from the content-addressed store, hash-verified

169 * @see Section
170 */
171public void
172addRecord(Record r, int section) {
173 if (sections[section] == null)
174 sections[section] = new LinkedList();
175 header.incCount(section);
176 sections[section].add(r);
177}
178
179/**
180 * Removes a record from a section of the Message, and adjusts the header.

Callers 5

sendQueryMethod · 0.95
generateReplyMethod · 0.95
buildErrorMessageMethod · 0.95
newQueryMethod · 0.95
sendAXFRMethod · 0.95

Calls 2

incCountMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected