|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.xbill.DNS.Record
The base class that all records are derived from.
| Field Summary | |
protected short |
dclass
|
protected Name |
name
|
protected int |
ttl
|
protected short |
type
|
protected int |
wireLength
|
| Constructor Summary | |
protected |
Record()
|
| Method Summary | |
boolean |
equals(Object arg)
Determines if two Records are identical |
static Record |
fromString(Name name,
short type,
short dclass,
int ttl,
MyStringTokenizer st,
Name origin)
Builds a new Record from its textual representation |
static Record |
fromWire(byte[] b,
int section)
Builds a Record from DNS uncompressed wire format. |
short |
getDClass()
Returns the record's class |
Name |
getName()
Returns the record's name |
short |
getRRsetType()
Returns the type of RRset that this record would belong to. |
int |
getTTL()
Returns the record's TTL |
short |
getType()
Returns record's type |
short |
getWireLength()
Returns the length of this record in wire format, based on the last time this record was parsed from data or converted to data. |
int |
hashCode()
Generates a hash code based on the Record's data |
static Record |
newRecord(Name name,
short type,
short dclass)
Creates a new empty record, with the given parameters. |
static Record |
newRecord(Name name,
short type,
short dclass,
int ttl)
Creates a new empty record, with the given parameters. |
static Record |
newRecord(Name name,
short type,
short dclass,
int ttl,
int length,
byte[] data)
Creates a new record, with the given parameters. |
String |
toString()
Converts a Record into a String representation |
byte[] |
toWire(int section)
Converts a Record into DNS uncompressed wire format. |
byte[] |
toWireCanonical()
Converts a Record into canonical DNS uncompressed wire format (all names are converted to lowercase). |
Record |
withName(Name name)
Creates a new record identical to the current record, but with a different name. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected Name name
protected short type
protected short dclass
protected int ttl
protected int wireLength
| Constructor Detail |
protected Record()
| Method Detail |
public static Record newRecord(Name name,
short type,
short dclass,
int ttl,
int length,
byte[] data)
public static Record newRecord(Name name,
short type,
short dclass,
int ttl)
public static Record newRecord(Name name,
short type,
short dclass)
public static Record fromWire(byte[] b,
int section)
throws IOException
public byte[] toWire(int section)
throws IOException
public byte[] toWireCanonical()
throws IOException
public String toString()
public static Record fromString(Name name,
short type,
short dclass,
int ttl,
MyStringTokenizer st,
Name origin)
throws IOException
public Name getName()
Namepublic short getType()
Typepublic short getRRsetType()
Type,
RRset,
SIGRecordpublic short getDClass()
public int getTTL()
public short getWireLength()
public boolean equals(Object arg)
public int hashCode()
public Record withName(Name name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||