本文整理了Java中org.xbill.DNS.Record.toWireCanonical
方法的一些代码示例,展示了Record.toWireCanonical
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.toWireCanonical
方法的具体详情如下:
包路径:org.xbill.DNS.Record
类名称:Record
方法名:toWireCanonical
暂无
代码示例来源:origin: dnsjava/dnsjava
/**
* Converts a Record into canonical DNS uncompressed wire format (all names are
* converted to lowercase).
*/
public byte []
toWireCanonical() {
return toWireCanonical(false);
}
代码示例来源:origin: dnsjava/dnsjava
/**
* Generates a hash code based on the Record's data.
*/
public int
hashCode() {
byte [] array = toWireCanonical(true);
int code = 0;
for (int i = 0; i < array.length; i++)
code += ((code << 3) + (array[i] & 0xFF));
return code;
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
/**
* Converts a Record into canonical DNS uncompressed wire format (all names are
* converted to lowercase).
*/
public byte []
toWireCanonical() {
return toWireCanonical(false);
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
/**
* Generates a hash code based on the Record's data.
*/
public int
hashCode() {
byte [] array = toWireCanonical(true);
int code = 0;
for (int i = 0; i < array.length; i++)
code += ((code << 3) + (array[i] & 0xFF));
return code;
}
代码示例来源:origin: org.littleshoot/dnsjava
/**
* Generates a hash code based on the Record's data.
*/
public int
hashCode() {
byte [] array = toWireCanonical(true);
int code = 0;
for (int i = 0; i < array.length; i++)
code += ((code << 3) + (array[i] & 0xFF));
return code;
}
代码示例来源:origin: org.littleshoot/dnsjava
/**
* Converts a Record into canonical DNS uncompressed wire format (all names are
* converted to lowercase).
*/
public byte []
toWireCanonical() {
return toWireCanonical(false);
}
代码示例来源:origin: tiandawu/IotXmpp
/**
* Converts a Record into canonical DNS uncompressed wire format (all names are
* converted to lowercase).
*/
public byte []
toWireCanonical() {
return toWireCanonical(false);
}
代码示例来源:origin: tiandawu/IotXmpp
/**
* Generates a hash code based on the Record's data.
*/
public int
hashCode() {
byte [] array = toWireCanonical(true);
int code = 0;
for (int i = 0; i < array.length; i++)
code += ((code << 3) + (array[i] & 0xFF));
return code;
}
代码示例来源:origin: dnsjava/dnsjava
private byte []
toWireCanonical(boolean noTTL) {
DNSOutput out = new DNSOutput();
toWireCanonical(out, noTTL);
return out.toByteArray();
}
代码示例来源:origin: org.littleshoot/dnsjava
private byte []
toWireCanonical(boolean noTTL) {
DNSOutput out = new DNSOutput();
toWireCanonical(out, noTTL);
return out.toByteArray();
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
private byte []
toWireCanonical(boolean noTTL) {
DNSOutput out = new DNSOutput();
toWireCanonical(out, noTTL);
return out.toByteArray();
}
代码示例来源:origin: tiandawu/IotXmpp
private byte []
toWireCanonical(boolean noTTL) {
DNSOutput out = new DNSOutput();
toWireCanonical(out, noTTL);
return out.toByteArray();
}
代码示例来源:origin: DirectProject/nhin-d
/**
* Converts a DNS record to a raw wire transfer format.
* @param rec The DNSRecord to convert.
* @return A byte array representation of the DNSRecord in raw wire transfer format.
* @throws IOException
*/
public static byte[] toWire(DNSRecord rec) throws IOException
{
Record retVal = Record.newRecord(Name.fromString(rec.getName()), rec.getType(), rec.getDclass(),
rec.getTtl(), rec.getData());
return retVal.toWireCanonical();
}
代码示例来源:origin: DirectProject/nhin-d
/**
* Converts a DNS record to a raw wire transfer format.
* @param rec The DNSRecord to convert.
* @return A byte array representation of the DNSRecord in raw wire transfer format.
* @throws IOException
*/
public static byte[] toWire(DNSRecord rec) throws IOException
{
Record retVal = Record.newRecord(Name.fromString(rec.getName()), rec.getType(), rec.getDclass(),
rec.getTtl(), rec.getData());
return retVal.toWireCanonical();
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
out.writeByteArray(records[i].toWireCanonical());
return out.toByteArray();
内容来源于网络,如有侵权,请联系作者删除!