mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8244202: Implementation of JEP 418: Internet-Address Resolution SPI
Co-authored-by: Chris Hegarty <chegar@openjdk.org> Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org> Co-authored-by: Alan Bateman <alanb@openjdk.org> Reviewed-by: dfuchs, alanb, michaelm, chegar
This commit is contained in:
parent
c29cab8ab4
commit
2ca4ff87b7
56 changed files with 2986 additions and 293 deletions
|
@ -24,7 +24,10 @@
|
|||
*/
|
||||
|
||||
package java.net;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.spi.InetAddressResolver.LookupPolicy;
|
||||
|
||||
/*
|
||||
* Package private interface to "implementation" used by
|
||||
* {@link InetAddress}.
|
||||
|
@ -38,7 +41,7 @@ sealed interface InetAddressImpl permits Inet4AddressImpl, Inet6AddressImpl {
|
|||
|
||||
String getLocalHostName() throws UnknownHostException;
|
||||
InetAddress[]
|
||||
lookupAllHostAddr(String hostname) throws UnknownHostException;
|
||||
lookupAllHostAddr(String hostname, LookupPolicy lookupPolicy) throws UnknownHostException;
|
||||
String getHostByAddr(byte[] addr) throws UnknownHostException;
|
||||
|
||||
InetAddress anyLocalAddress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue