KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > FileNameMap


1 /*
2  * @(#)FileNameMap.java 1.15 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.net;
9
10 /**
11  * A simple interface which provides a mechanism to map
12  * between a file name and a MIME type string.
13  *
14  * @version 1.15, 11/17/05
15  * @author Steven B. Byrne
16  * @since JDK1.1
17  */

18 public interface FileNameMap {
19
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 JavaDoc getContentTypeFor(String JavaDoc fileName);
27 }
28
Popular Tags