public abstract static class DNSRecord.Address extends DNSRecord
DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.IPv4Address, DNSRecord.IPv6Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text
Modifier | Constructor and Description |
---|---|
protected |
DNSRecord.Address(java.lang.String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
byte[] rawAddress) |
protected |
DNSRecord.Address(java.lang.String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
java.net.InetAddress addr) |
Modifier and Type | Method and Description |
---|---|
ServiceEvent |
getServiceEvent(JmDNSImpl dns)
Creates and return a service event for this record.
|
ServiceInfo |
getServiceInfo(boolean persistent)
Return a service information associated with that record if appropriate.
|
boolean |
isSingleValued()
Determine if a record can have multiple values in the cache.
|
protected void |
toByteArray(java.io.DataOutputStream dout)
Creates a byte array representation of this record.
|
protected void |
toString(java.lang.StringBuilder aLog) |
equals, getRecordSource, getServiceInfo, getTTL, isExpired, isStale, setRecordSource, setTTL
compareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toString
protected DNSRecord.Address(java.lang.String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique, int ttl, java.net.InetAddress addr)
protected DNSRecord.Address(java.lang.String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique, int ttl, byte[] rawAddress)
public boolean isSingleValued()
DNSRecord
isSingleValued
in class DNSRecord
false
if this record can have multiple values in the cache, true
otherwise.protected void toByteArray(java.io.DataOutputStream dout) throws java.io.IOException
toByteArray
in class DNSEntry
java.io.IOException
public ServiceInfo getServiceInfo(boolean persistent)
DNSRecord
getServiceInfo
in class DNSRecord
persistent
- if true
ServiceListener.resolveService will be called whenever new new information is received.public ServiceEvent getServiceEvent(JmDNSImpl dns)
DNSRecord
getServiceEvent
in class DNSRecord
dns
- DNS serviced by this event