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 变量和类型 方法 描述 static InetAddress[]
InetAddress. getAllByName(String host)
根据主机的名称,根据系统上配置的名称服务返回其IP地址数组。static Inet6Address
Inet6Address. getByAddress(String host, byte[] addr, int scope_id)
在的确切方式创建Inet6Address,InetAddress.getByAddress(String,byte[])
不同之处在于将IPv6 scope_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 构造器 描述 Socket(String host, int port)
创建流套接字并将其连接到指定主机上的指定端口号。 -
Uses of UnknownHostException in javax.net
Methods in javax.net that throw UnknownHostException 变量和类型 方法 描述 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 构造器 描述 SSLSocket(String host, int port)
仅由子类使用。SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)
仅由子类使用。
-