public final class ContentType extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[][] |
MIME_TYPE_MAPPINGS
Mime Type mappings 'liberated' from Tomcat4.1.18/conf/web.xml
|
public static final String[][] MIME_TYPE_MAPPINGS
public static String get(String fileName)
fileName - for which the content type is to be determined.public static String get(File file)
file - for which the content type is to be determined.IOException - if the construction of the canonical path for
the file fails.Copyright © 2012 Apache Software Foundation. All Rights Reserved.