< prev index next >

src/java.base/share/classes/java/net/InetAddressImpl.java

Print this page
*** 22,11 ***
--- 22,14 ---
   * or visit www.oracle.com if you need additional information or have any
   * questions.
   */
  
  package java.net;
+ 
  import java.io.IOException;
+ import java.net.spi.InetAddressResolver.LookupPolicy;
+ 
  /*
   * Package private interface to "implementation" used by
   * {@link InetAddress}.
   * <p>
   * See {@link java.net.Inet4AddressImp} and

*** 36,11 ***
   */
  sealed interface InetAddressImpl permits Inet4AddressImpl, Inet6AddressImpl {
  
      String getLocalHostName() throws UnknownHostException;
      InetAddress[]
!         lookupAllHostAddr(String hostname) throws UnknownHostException;
      String getHostByAddr(byte[] addr) throws UnknownHostException;
  
      InetAddress anyLocalAddress();
      InetAddress loopbackAddress();
      boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif,
--- 39,11 ---
   */
  sealed interface InetAddressImpl permits Inet4AddressImpl, Inet6AddressImpl {
  
      String getLocalHostName() throws UnknownHostException;
      InetAddress[]
!         lookupAllHostAddr(String hostname, LookupPolicy lookupPolicy) throws UnknownHostException;
      String getHostByAddr(byte[] addr) throws UnknownHostException;
  
      InetAddress anyLocalAddress();
      InetAddress loopbackAddress();
      boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif,
< prev index next >