org.xbill.DNS.Header.setCount()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(176)

本文整理了Java中org.xbill.DNS.Header.setCount()方法的一些代码示例,展示了Header.setCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.setCount()方法的具体详情如下:
包路径:org.xbill.DNS.Header
类名称:Header
方法名:setCount

Header.setCount介绍

暂无

代码示例

代码示例来源:origin: dnsjava/dnsjava

/**
 * Removes all records from a section of the Message, and adjusts the header.
 * @see Record
 * @see Section
 */
public void
removeAllRecords(int section) {
  sections[section] = null;
  header.setCount(section, 0);
}

代码示例来源:origin: tiandawu/IotXmpp

/**
 * Removes all records from a section of the Message, and adjusts the header.
 * @see Record
 * @see Section
 */
public void
removeAllRecords(int section) {
  sections[section] = null;
  header.setCount(section, 0);
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Removes all records from a section of the Message, and adjusts the header.
 * @see Record
 * @see Section
 */
public void
removeAllRecords(int section) {
  sections[section] = null;
  header.setCount(section, 0);
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Removes all records from a section of the Message, and adjusts the header.
 * @see Record
 * @see Section
 */
public void
removeAllRecords(int section) {
  sections[section] = null;
  header.setCount(section, 0);
}

代码示例来源:origin: posicks/mdnsjava

Header header = (Header) message.getHeader().clone();
header.setCount(0, 0);
header.setCount(1, 0);
header.setCount(2, 0);
header.setCount(3, 0);
m.setHeader(header);
m.addRecord(records[index], section);

代码示例来源:origin: org.littleshoot/dnsjava

newheader.setFlag(Flags.TC);
int count = newheader.getCount(i);
newheader.setCount(i, count - skipped);
for (int j = i + 1; j < 4; j++)
  newheader.setCount(j, 0);

代码示例来源:origin: tiandawu/IotXmpp

newheader.setFlag(Flags.TC);
int count = newheader.getCount(i);
newheader.setCount(i, count - skipped);
for (int j = i + 1; j < 4; j++)
  newheader.setCount(j, 0);

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

newheader.setFlag(Flags.TC);
int count = newheader.getCount(i);
newheader.setCount(i, count - skipped);
for (int j = i + 1; j < 4; j++)
  newheader.setCount(j, 0);

相关文章