|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.net.Localhost
public final class Localhost
General host info utilities.
Method Summary | |
---|---|
static String |
getDomain()
Short cut to get the local host's default domain name. |
static String |
getName()
Short cut to get the short version of the local host name (ie without the domain name). |
static InetAddress |
getNetworkAddress()
Return the "real" network address of the current host (ie a non-loopback interface). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getName() throws IOException, NoHostNameException
IOException
- if an error occurs accessing network adapter info.
NoHostNameException
- if no host name can be found.getNetworkAddress()
public static String getDomain() throws IOException, NoHostNameException
IOException
- if an error occurs accessing network adapter info.
NoHostNameException
- if no domain can be found.getNetworkAddress()
public static InetAddress getNetworkAddress() throws IOException, NoHostNameException
IOException
- if an error occurs accessing network adapter info.
NoHostNameException
- if no non-loopback address can be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |