Uses of Class
java.net.UnknownHostException
-
Packages that use UnknownHostException 软件包 描述 java.net 提供实现网络应用程序的类。javax.net 提供网络应用程序的类。javax.net.ssl 为安全套接字包提供类。 -
-
Uses of UnknownHostException in java.net
Methods in java.net that throw UnknownHostException Modifier and Type 方法 描述 static InetAddress[]
InetAddress. getAllByName(String host)
给定主机的名称,根据系统上配置的名称服务返回其IP地址数组。static Inet6Address
Inet6Address. getByAddress(String host, byte[] addr, int scope_id)
以InetAddress.getByAddress(String,byte[])
的确切方式创建Inet6Address,但将IPv6范围 ID设置为给定的数值。static Inet6Address
Inet6Address. getByAddress(String host, byte[] addr, NetworkInterface nif)
在的确切方式创建Inet6Address,InetAddress.getByAddress(String,byte[])
不同之处在于将IPv6 scope_id设置为对应于在指定的地址类型的给定接口的值addr
。static InetAddress
InetAddress. getByAddress(byte[] addr)
给出原始IP地址的InetAddress
对象。static InetAddress
InetAddress. getByAddress(String host, byte[] addr)
根据提供的主机名和IP地址创建InetAddress。static InetAddress
InetAddress. getByName(String host)
确定主机名称的IP地址。static InetAddress
InetAddress. getLocalHost()
返回本地主机的地址。Constructors in java.net that throw UnknownHostException Constructor 描述 Socket(String host, int port)
创建流套接字并将其连接到指定主机上的指定端口号。 -
Uses of UnknownHostException in javax.net
Methods in javax.net that throw UnknownHostException Modifier and Type 方法 描述 abstract Socket
SocketFactory. createSocket(String host, int port)
创建套接字并将其连接到指定的远程端口上的指定远程主机。abstract Socket
SocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)
创建套接字并将其连接到指定远程端口上的指定远程主机。 -
Uses of UnknownHostException in javax.net.ssl
Constructors in javax.net.ssl that throw UnknownHostException Constructor 描述 SSLSocket(String host, int port)
仅由子类使用。SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)
仅由子类使用。
-