org.xbill.DNS
public class RRset extends java.lang.Object implements java.io.Serializable
Record
,
RRSIGRecord
,
Serialized FormConstructor and Description |
---|
RRset()
Creates an empty RRset
|
RRset(Record record)
Creates an RRset and sets its contents to the specified record
|
RRset(RRset rrset)
Creates an RRset with the contents of an existing RRset
|
Modifier and Type | Method and Description |
---|---|
void |
addRR(Record r)
Adds a Record to an RRset
|
void |
clear()
Deletes all Records from an RRset
|
void |
deleteRR(Record r)
Deletes a Record from an RRset
|
Record |
first()
Returns the first record
|
int |
getDClass()
Returns the class of the records
|
Name |
getName()
Returns the name of the records
|
long |
getTTL()
Returns the ttl of the records
|
int |
getType()
Returns the type of the records
|
java.util.Iterator |
rrs()
Returns an Iterator listing all (data) records.
|
java.util.Iterator |
rrs(boolean cycle)
Returns an Iterator listing all (data) records.
|
java.util.Iterator |
sigs()
Returns an Iterator listing all signature records
|
int |
size()
Returns the number of (data) records
|
java.lang.String |
toString()
Converts the RRset to a String
|
public RRset()
public RRset(Record record)
public RRset(RRset rrset)
public void addRR(Record r)
public void deleteRR(Record r)
public void clear()
public java.util.Iterator rrs(boolean cycle)
cycle
- If true, cycle through the records so that each Iterator will
start with a different record.public java.util.Iterator rrs()
public java.util.Iterator sigs()
public int size()
public int getType()
Type
public int getDClass()
DClass
public long getTTL()
public Record first()
java.lang.IllegalStateException
- if the rrset is emptypublic java.lang.String toString()
toString
in class java.lang.Object