1 |
/* FileNameMap.java -- Maps filenames to MIME types |
/* FileNameMap.java -- Maps filenames to MIME types |
2 |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
54 |
*/ |
*/ |
55 |
public interface FileNameMap |
public interface FileNameMap |
56 |
{ |
{ |
57 |
/** |
/** |
58 |
* This method is passed a filename and is responsible for determining |
* This method is passed a filename and is responsible for determining |
59 |
* the appropriate MIME type for that file. |
* the appropriate MIME type for that file. |
60 |
* |
* |
61 |
* @param filename The name of the file to generate a MIME type for. |
* @param filename The name of the file to generate a MIME type for. |
62 |
* |
* |
63 |
* @return The MIME type for the filename passed in. |
* @return The MIME type for the filename passed in. |
64 |
*/ |
*/ |
65 |
String |
public String getContentTypeFor(String filename); |
|
getContentTypeFor(String filename); |
|
66 |
|
|
67 |
} // interface FileNameMap |
} // interface FileNameMap |
68 |
|
|