|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.RRset
public class RRset
A set of Records with the same name, type, and class. Also included are all RRSIG records signing the data records.
Record
,
RRSIGRecord
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Iterator |
rrs()
Returns an Iterator listing all (data) records. |
Iterator |
rrs(boolean cycle)
Returns an Iterator listing all (data) records. |
Iterator |
sigs()
Returns an Iterator listing all signature records |
int |
size()
Returns the number of (data) records |
String |
toString()
Converts the RRset to a String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RRset()
public RRset(Record record)
public RRset(RRset rrset)
Method Detail |
---|
public void addRR(Record r)
public void deleteRR(Record r)
public void clear()
public Iterator rrs(boolean cycle)
cycle
- If true, cycle through the records so that each Iterator will
start with a different record.public Iterator rrs()
public Iterator sigs()
public int size()
public Name getName()
Name
public int getType()
Type
public int getDClass()
DClass
public long getTTL()
public Record first()
IllegalStateException
- if the rrset is emptypublic String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |