本文整理了Java中org.xbill.DNS.Header.setCount()
方法的一些代码示例,展示了Header.setCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.setCount()
方法的具体详情如下:
包路径:org.xbill.DNS.Header
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!