|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.jmdns.impl.DNSEntry
public abstract class DNSEntry
DNS entry with a name, type, and class. This is the base class for questions and records.
Method Summary | |
---|---|
int |
compareTo(DNSEntry that)
Does a lexicographic comparison of the byte array representation of this record and that record. |
boolean |
equals(java.lang.Object obj)
Check if two entries have exactly the same name, type, and class. |
java.lang.String |
getKey()
Returns the key for this entry. |
java.lang.String |
getName()
Returns teh name of this entry |
javax.jmdns.impl.constants.DNSRecordClass |
getRecordClass()
|
javax.jmdns.impl.constants.DNSRecordType |
getRecordType()
|
int |
hashCode()
Overriden, to return a value which is consistent with the value returned by equals(Object). |
boolean |
isUnique()
|
void |
setName(java.lang.String value)
|
protected byte[] |
toByteArray()
Creates a byte array representation of this record. |
protected void |
toByteArray(java.io.DataOutputStream dout)
|
java.lang.String |
toString()
|
void |
toString(java.lang.StringBuilder aLog)
|
java.lang.String |
toString(java.lang.String hdr,
java.lang.String other)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getKey()
public void setName(java.lang.String value)
value
- public javax.jmdns.impl.constants.DNSRecordType getRecordType()
public javax.jmdns.impl.constants.DNSRecordClass getRecordClass()
public boolean isUnique()
protected void toByteArray(java.io.DataOutputStream dout) throws java.io.IOException
dout
-
java.io.IOException
protected byte[] toByteArray()
public int compareTo(DNSEntry that)
that
-
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(java.lang.StringBuilder aLog)
aLog
- public java.lang.String toString(java.lang.String hdr, java.lang.String other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |