1. /*
  2. * @(#)InetAddressImpl.java 1.4 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.net;
  8. import java.io.IOException;
  9. /*
  10. * Package private interface to "implementation" used by
  11. * {@link InetAddress}.
  12. * <p>
  13. * See {@link java.net.Inet4AddressImp} and
  14. * {@link java.net.Inet6AddressImp}.
  15. *
  16. * @since 1.4
  17. */
  18. interface InetAddressImpl {
  19. String getLocalHostName() throws UnknownHostException;
  20. byte[][]
  21. lookupAllHostAddr(String hostname) throws UnknownHostException;
  22. String getHostByAddr(byte[] addr) throws UnknownHostException;
  23. InetAddress anyLocalAddress();
  24. InetAddress loopbackAddress();
  25. boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif,
  26. int ttl) throws IOException;
  27. }