com.nhncorp.neptune.common.util
Class NetworkUtil

java.lang.Object
  extended by com.nhncorp.neptune.common.util.NetworkUtil

public class NetworkUtil
extends java.lang.Object


Constructor Summary
NetworkUtil()
           
 
Method Summary
static java.lang.String fileNameToHostName(java.lang.String fileName)
           
static java.net.InetSocketAddress getAddress(java.lang.String hostStr)
           
static java.net.InetSocketAddress getLocalAddress(int port)
           
static java.lang.String hostNameToFileName(java.lang.String hostName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkUtil

public NetworkUtil()
Method Detail

getLocalAddress

public static java.net.InetSocketAddress getLocalAddress(int port)
                                                  throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getAddress

public static java.net.InetSocketAddress getAddress(java.lang.String hostStr)

hostNameToFileName

public static java.lang.String hostNameToFileName(java.lang.String hostName)

fileNameToHostName

public static java.lang.String fileNameToHostName(java.lang.String fileName)