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 boolean
equals(Object var0)
byte[]
getAddress()
static InetAddress[]
getAllByName(String var0)
static InetAddress
getByName(String var0)
String
getHostAddress()
String
getHostName()
static InetAddress
getLocalHost()
int
hashCode()
boolean
isMulticastAddress()
String
toString()
-
-
-
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()
-
-