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