verinec.netsim.processors.dns
Class DNSNameService

java.lang.Object
  extended by verinec.netsim.processors.dns.DNSNameService
All Implemented Interfaces:
sun.net.spi.nameservice.NameService

public class DNSNameService
extends Object
implements sun.net.spi.nameservice.NameService


Constructor Summary
DNSNameService()
           
 
Method Summary
 String getHostByAddr(byte[] arg0)
           
 byte[][] lookupAllHostAddr(String arg0)
           
static byte[] payloadToByteArray(Object payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSNameService

public DNSNameService()
Method Detail

getHostByAddr

public String getHostByAddr(byte[] arg0)
                     throws UnknownHostException
Specified by:
getHostByAddr in interface sun.net.spi.nameservice.NameService
Throws:
UnknownHostException
See Also:
NameService.getHostByAddr(byte[])

lookupAllHostAddr

public byte[][] lookupAllHostAddr(String arg0)
                           throws UnknownHostException
Specified by:
lookupAllHostAddr in interface sun.net.spi.nameservice.NameService
Throws:
UnknownHostException
See Also:
NameService.lookupAllHostAddr(java.lang.String)

payloadToByteArray

public static byte[] payloadToByteArray(Object payload)
                                 throws Exception
Throws:
Exception

Copyright © 2005 Verinec, DIUF