Uses of Class java.net.UnknownHostException

Uses in package javax.net.ssl

Constructors which throw type java.net.UnknownHostException

SSLSocket.SSLSocket(String host, int port)
SSLSocket.SSLSocket(String host, int port, InetAddress localAddr, int localPort)

Uses in package java.net

Constructors which throw type java.net.UnknownHostException

Socket.Socket(String host, int port)
Initializes a new instance of Socket and connects to the hostname and port specified as arguments.

Methods which throw type java.net.UnknownHostException

InetAddress[]
Returns an array of InetAddress objects representing all the host/ip addresses of a given host, given the host's name.
InetAddress
Returns an InetAddress object given the raw IP address.
InetAddress
InetAddress.getByAddress(String host, byte[] addr)
Creates an InetAddress based on the provided host name and IP address.
Inet6Address
Inet6Address.getByAddress(String host, byte[] addr, int scopeId)
Creates a scoped Inet6Address where the scope has an integer id.
Inet6Address
Creates a scoped Inet6Address where the scope is a given NetworkInterface.
InetAddress
Returns an InetAddress object representing the IP address of the given hostname.
InetAddress
Returns an InetAddress object representing the address of the current host.

Uses in package javax.net

Methods which throw type java.net.UnknownHostException

Socket
Creates a socket connected to a given host on a given port.
Socket
SocketFactory.createSocket(String host, int port, InetAddress localHost, int localPort)
Creates a socket connected to a given host on a given port, connecting locally to the interface with the given address and port.