Package org.xbill.DNS

Examples of org.xbill.DNS.Record.rdataToString()


                            protocolAddresses = new ProtocolAddress[recordCount];

                            for (int i = 0; i < recordCount; i++) {
                                final Record record = records[i];
                                protocolAddresses[i] = new IPv4Address(record.rdataToString());
                            }
                        } else {
                            throw new UnknownHostException(lookup.getErrorString());
                        }
View Full Code Here


        for (final Iterator itr = records.iterator(); itr.hasNext();) {
          final Record record = (Record) itr.next();
          if(record instanceof SRVRecord) {
            result = compareSrvRecord(result, serviceInfo, record);
          } else if(record instanceof TXTRecord) {
            final String[] str = record.rdataToString().split("=");
            final String key = str[0].substring(1);
            final String value = str[1].substring(0, str[1].length() - 1);
            final Object property = serviceInfo.getServiceProperties().getProperty(key);
            if(property != null) {
              result += value.equals(property.toString()) ? 1 : -1;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.