|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.xbill.DNS.Name
A representation of a domain name.
| Field Summary | |
static Name |
root
The root name |
| Constructor Summary | |
Name(DataByteInputStream in,
org.xbill.DNS.Compression c)
Create a new name from DNS wire format |
|
Name(Name d,
int n)
Create a new name by removing labels from the beginning of an existing Name |
|
Name(String s)
Create a new name from a string |
|
Name(String s,
Name origin)
Create a new name from a string and an origin |
|
| Method Summary | |
void |
append(Name d)
Appends the specified name to the end of the current Name |
boolean |
equals(Object arg)
Are these two Names equivalent? |
int |
hashCode()
Computes a hashcode based on the value |
boolean |
isQualified()
Is this name fully qualified? |
boolean |
isWild()
Is this name a wildcard? |
byte |
labels()
The number of labels |
short |
length()
The length |
boolean |
subdomain(Name domain)
Is the current Name a subdomain of the specified name? |
String |
toString()
Convert Name to a String |
void |
toWire(DataByteOutputStream out,
org.xbill.DNS.Compression c)
Convert Name to DNS wire format |
void |
toWireCanonical(DataByteOutputStream out)
Convert Name to canonical DNS wire format (all lowercase) |
Name |
wild(int n)
Generates a new Name with the first n labels replaced by a wildcard |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static Name root
| Constructor Detail |
public Name(String s,
Name origin)
s - The string to be convertedorigin - If the name is unqalified, the origin to be appendedpublic Name(String s)
s - The string to be converted
public Name(DataByteInputStream in,
org.xbill.DNS.Compression c)
throws IOException
in - A stream containing the input datac - The compression context. This should be null unless a full
message is being parsed.
public Name(Name d,
int n)
d - An existing Namen - The number of labels to remove from the beginning in the copy| Method Detail |
public Name wild(int n)
public boolean isWild()
public boolean isQualified()
public void append(Name d)
public short length()
public byte labels()
public boolean subdomain(Name domain)
public String toString()
public void toWire(DataByteOutputStream out,
org.xbill.DNS.Compression c)
throws IOException
public void toWireCanonical(DataByteOutputStream out)
throws IOException
public boolean equals(Object arg)
public int hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||