public class

ResourceRecord

extends Object
java.lang.Object
   ↳ com.sun.jndi.dns.ResourceRecord

Class Overview

The ResourceRecord class represents a DNS resource record. The string format is based on the master file representation in RFC 1035.

Summary

Public Methods
static int compareSerialNumbers(long s1, long s2)
DnsName getName()
Object getRdata()
static int getRrclass(String className)
int getRrclass()
static String getRrclassName(int rrclass)
int getType()
static int getType(String typeName)
static String getTypeName(int rrtype)
int size()
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int compareSerialNumbers (long s1, long s2)

public DnsName getName ()

public Object getRdata ()

public static int getRrclass (String className)

public int getRrclass ()

public static String getRrclassName (int rrclass)

public int getType ()

public static int getType (String typeName)

public static String getTypeName (int rrtype)

public int size ()

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.