1. /*
  2. * @(#)FileNameMap.java 1.13 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. * A simple interface which provides a mechanism to map
  10. * between a file name and a MIME type string.
  11. *
  12. * @version 1.13, 01/23/03
  13. * @author Steven B. Byrne
  14. * @since JDK1.1
  15. */
  16. public interface FileNameMap {
  17. /**
  18. * Gets the MIME type for the specified file name.
  19. * @param fileName the specified file name
  20. * @return a <code>String</code> indicating the MIME
  21. * type for the specified file name.
  22. */
  23. public String getContentTypeFor(String fileName);
  24. }