javax.jmdns.impl
Class DNSRecord.Address
java.lang.Object
javax.jmdns.impl.DNSEntry
javax.jmdns.impl.DNSRecord
javax.jmdns.impl.DNSRecord.Address
- Direct Known Subclasses:
- DNSRecord.IPv4Address, DNSRecord.IPv6Address
- Enclosing class:
- DNSRecord
public abstract static class DNSRecord.Address
- extends DNSRecord
Address record.
Constructor Summary |
protected |
DNSRecord.Address(String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
byte[] rawAddress)
|
protected |
DNSRecord.Address(String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
InetAddress addr)
|
Methods inherited from class javax.jmdns.impl.DNSEntry |
compareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, sameSubtype, toByteArray, toString |
DNSRecord.Address
protected DNSRecord.Address(String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
InetAddress addr)
DNSRecord.Address
protected DNSRecord.Address(String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
byte[] rawAddress)
isSingleValued
public boolean isSingleValued()
- Description copied from class:
DNSRecord
- Determine if a record can have multiple values in the cache.
- Specified by:
isSingleValued
in class DNSRecord
- Returns:
false
if this record can have multiple values in the cache, true
otherwise.
toByteArray
protected void toByteArray(DataOutputStream dout)
throws IOException
- Creates a byte array representation of this record. This is needed for tie-break tests according to draft-cheshire-dnsext-multicastdns-04.txt chapter 9.2.
- Overrides:
toByteArray
in class DNSEntry
- Throws:
IOException
getServiceInfo
public ServiceInfo getServiceInfo(boolean persistent)
- Description copied from class:
DNSRecord
- Return a service information associated with that record if appropriate.
- Specified by:
getServiceInfo
in class DNSRecord
- Parameters:
persistent
- if true
ServiceListener.resolveService will be called whenever new new information is received.
- Returns:
- service information
getServiceEvent
public ServiceEvent getServiceEvent(JmDNSImpl dns)
- Description copied from class:
DNSRecord
- Creates and return a service event for this record.
- Specified by:
getServiceEvent
in class DNSRecord
- Parameters:
dns
- DNS serviced by this event
- Returns:
- service event
toString
protected void toString(StringBuilder aLog)
- Overrides:
toString
in class DNSRecord
Copyright © 2002-2011 JmDNS. All Rights Reserved.