orcl
Class NetworkFactory

java.lang.Object
  extended by orcl.NetworkFactory

public class NetworkFactory
extends java.lang.Object

Network information


Constructor Summary
NetworkFactory()
          get address
 
Method Summary
 java.lang.String getHostName()
          get host name
 java.lang.String getIp()
          to get ip address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkFactory

public NetworkFactory()
               throws java.net.UnknownHostException
get address

Throws:
java.net.UnknownHostException - error on host
Method Detail

getHostName

public java.lang.String getHostName()
get host name

Returns:
host name

getIp

public java.lang.String getIp()
to get ip address

Returns:
IP address