1. /*
  2. * @(#)FileNameMap.java 1.11 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.net;
  11. /**
  12. * A simple interface which provides a mechanism to map
  13. * between a file name and a MIME type string.
  14. *
  15. * @version 1.11, 02/02/00
  16. * @author Steven B. Byrne
  17. * @since JDK1.1
  18. */
  19. public interface FileNameMap {
  20. /**
  21. * Gets the MIME type for the specified file name.
  22. * @param fileName the specified file name
  23. * @return a <code>String</code> indicating the MIME
  24. * type for the specified file name.
  25. */
  26. public String getContentTypeFor(String fileName);
  27. }