DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.IPv4Address, DNSRecord.IPv6Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text| 限定符 | 构造器和说明 |
|---|---|
protected |
Address(java.lang.String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
byte[] rawAddress) |
protected |
Address(java.lang.String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
java.net.InetAddress addr) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 sb) |
equals, getCreated, getRecordSource, getServiceInfo, getTTL, incrementRefreshPercentage, isExpired, isStale, isStaleAndShouldBeRefreshed, setRecordSource, setTTLcompareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toStringprotected Address(java.lang.String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
java.net.InetAddress addr)
protected Address(java.lang.String name,
DNSRecordType type,
DNSRecordClass recordClass,
boolean unique,
int ttl,
byte[] rawAddress)
public boolean isSingleValued()
DNSRecordisSingleValued 在类中 DNSRecordfalse if this record can have multiple values in the cache, true otherwise.protected void toByteArray(java.io.DataOutputStream dout)
throws java.io.IOException
toByteArray 在类中 DNSEntryjava.io.IOExceptionpublic ServiceInfo getServiceInfo(boolean persistent)
DNSRecordgetServiceInfo 在类中 DNSRecordpersistent - if true ServiceListener.resolveService will be called whenever new new information is received.public ServiceEvent getServiceEvent(JmDNSImpl dns)
DNSRecordgetServiceEvent 在类中 DNSRecorddns - DNS serviced by this event