Package javax.jmdns.impl
Class DNSRecord.Text
java.lang.Object
javax.jmdns.impl.DNSEntry
javax.jmdns.impl.DNSRecord
javax.jmdns.impl.DNSRecord.Text
- Enclosing class:
- DNSRecord
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.jmdns.impl.DNSRecord
DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.IPv4Address, DNSRecord.IPv6Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text
-
Constructor Summary
ConstructorsConstructorDescriptionText
(String name, DNSRecordClass recordClass, boolean unique, int ttl, byte[] text) -
Method Summary
Modifier and TypeMethodDescriptiongetServiceEvent
(JmDNSImpl dns) Creates and return a service event for this record.getServiceInfo
(boolean persistent) Return a service information associated with that record if appropriate.boolean
Determine if a record can have multiple values in the cache.protected void
Methods inherited from class javax.jmdns.impl.DNSRecord
equals, getCreated, getRecordSource, getServiceInfo, getTTL, incrementRefreshPercentage, isExpired, isStale, isStaleAndShouldBeRefreshed, setRecordSource, setTTL
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, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toByteArray, toString
-
Constructor Details
-
Text
-
-
Method Details
-
isSingleValued
public boolean isSingleValued()Description copied from class:DNSRecord
Determine if a record can have multiple values in the cache.- Specified by:
isSingleValued
in classDNSRecord
- Returns:
false
if this record can have multiple values in the cache,true
otherwise.
-
getServiceInfo
Description copied from class:DNSRecord
Return a service information associated with that record if appropriate.- Specified by:
getServiceInfo
in classDNSRecord
- Parameters:
persistent
- iftrue
ServiceListener.resolveService will be called whenever new new information is received.- Returns:
- service information
-
getServiceEvent
Description copied from class:DNSRecord
Creates and return a service event for this record.- Specified by:
getServiceEvent
in classDNSRecord
- Parameters:
dns
- DNS serviced by this event- Returns:
- service event
-
toString
-