Package com.mchange.v2.net
Class LocalHostManager
- java.lang.Object
-
- com.mchange.v2.net.LocalHostManager
-
public class LocalHostManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LocalHostManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set
getLocalAddresses()
boolean
isLocalAddress(java.net.InetAddress addr)
boolean
isLocalHostName(java.lang.String name)
static void
main(java.lang.String[] argv)
void
update()
-
-
-
Method Detail
-
update
public void update() throws java.net.SocketException
- Throws:
java.net.SocketException
-
getLocalAddresses
public java.util.Set getLocalAddresses()
-
isLocalAddress
public boolean isLocalAddress(java.net.InetAddress addr)
-
isLocalHostName
public boolean isLocalHostName(java.lang.String name)
-
main
public static void main(java.lang.String[] argv)
-
-