liquibase.util
Class NetUtil

java.lang.Object
  extended by liquibase.util.NetUtil

public class NetUtil
extends Object


Constructor Summary
NetUtil()
           
 
Method Summary
static String getLocalHostAddress()
          Smarter way to get localhost than InetAddress.getLocalHost.
static String getLocalHostName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetUtil

public NetUtil()
Method Detail

getLocalHostAddress

public static String getLocalHostAddress()
                                  throws UnknownHostException,
                                         SocketException
Smarter way to get localhost than InetAddress.getLocalHost. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4665037

Throws:
UnknownHostException
SocketException

getLocalHostName

public static String getLocalHostName()
                               throws UnknownHostException,
                                      SocketException
Throws:
UnknownHostException
SocketException


Copyright © 2014 Liquibase.org. All Rights Reserved.