|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
DNS RData interface, abstract class each record data class must implemented.
| Method Summary | |
byte[] |
buildPacket(DNSName dnsname,
int globalIdx)
Build and return the rdata packet on the internal state. |
java.lang.Object |
clone()
Overrides Cloneable. |
void |
disassemblePacket(DNSName dnsname,
byte[] pDat,
int pIdx,
int pLen)
Parses the rdata part of a record. |
int |
getDisassembledLen()
Returns the length of the previously disassembled rdata part. |
int |
getRType()
Get the record type. |
void |
setDebug(boolean b)
Toggle debug status. |
java.lang.String |
toString()
Returns a string representation of the internal state, mostly for debugging purposes. |
| Method Detail |
public java.lang.Object clone()
clone in class java.lang.ObjectOutOfMemoryError - if there is not enough memory.Cloneablepublic void setDebug(boolean b)
b - boolean.
public byte[] buildPacket(DNSName dnsname,
int globalIdx)
throws DNSNameException
dnsname - used for domain name compression in the same message.globalIdx - current index of the message being assembled. (Domain name compression)DNSNameException - if the domain name is invalid.public int getDisassembledLen()
disassemblePacket(DNSName, byte[], int, int)
public void disassemblePacket(DNSName dnsname,
byte[] pDat,
int pIdx,
int pLen)
throws DNSNameException,
DNSRDataException
dnsname - used for domain name compression in the same message.pDat - array containing the complete packet.pIdx - index to where in the array the rdata part begins.pLen - length of the whole packet.DNSRDataException - if the packet is corrupted.DNSNameException - if the domain name is invalid.getDisassembledLen()public int getRType()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||