Package java.net
Class InetAddress
- java.lang.Object
-
- java.net.InetAddress
-
- All Implemented Interfaces:
Serializable
public final class InetAddress extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object var0)byte[]getAddress()static InetAddress[]getAllByName(String var0)static InetAddressgetByName(String var0)StringgetHostAddress()StringgetHostName()static InetAddressgetLocalHost()inthashCode()booleanisMulticastAddress()StringtoString()
-
-
-
Method Detail
-
getAddress
public byte[] getAddress()
-
getAllByName
public static InetAddress[] getAllByName(String var0) throws UnknownHostException
- Throws:
UnknownHostException
-
getByName
public static InetAddress getByName(String var0) throws UnknownHostException
- Throws:
UnknownHostException
-
getHostAddress
public String getHostAddress()
-
getHostName
public String getHostName()
-
getLocalHost
public static InetAddress getLocalHost() throws UnknownHostException
- Throws:
UnknownHostException
-
isMulticastAddress
public boolean isMulticastAddress()
-
-