Secure iNet Factory

com.jscape.inet.dns.record
Class WellKnownServices

java.lang.Object
  extended by com.jscape.inet.dns.record.DnsRecord
      extended by com.jscape.inet.dns.record.WellKnownServices
All Implemented Interfaces:
java.io.Serializable

public class WellKnownServices
extends DnsRecord

WellKnownServices record is used to describe the well known services supported by a particular protocol on a particular internet address.

See Also:
Serialized Form

Constructor Summary
WellKnownServices()
           
 
Method Summary
 byte[] getAddress()
          Gets byte[] representing 32 bit ip address.
 byte[] getData()
          Gets data describing this service.
 java.net.InetAddress getInetAddress()
          Gets InetAddress for this service.
 int getProtocol()
          Gets protocol for this service.
 java.lang.String toString()
          Gets String representation of this record.
 
Methods inherited from class com.jscape.inet.dns.record.DnsRecord
getRecordClass, getRecordName, getRecordTTL, getRecordType, init, isValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WellKnownServices

public WellKnownServices()
Method Detail

getAddress

public byte[] getAddress()
Gets byte[] representing 32 bit ip address.

Returns:
byte[]

getInetAddress

public java.net.InetAddress getInetAddress()
                                    throws java.net.UnknownHostException
Gets InetAddress for this service.

Returns:
an InetAddress
Throws:
java.net.UnknownHostException - the IP address of a host could not be determined

getProtocol

public int getProtocol()
Gets protocol for this service.

Returns:
int

getData

public byte[] getData()
Gets data describing this service.

Returns:
byte[]

toString

public java.lang.String toString()
Gets String representation of this record.

Overrides:
toString in class java.lang.Object
Returns:
String

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved