public class FileTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
suffixToType
Maps file suffixes to content types.
|
static java.util.Map<java.lang.String,java.lang.String> |
typeToSuffix
Maps content types to file suffixes.
|
Constructor and Description |
---|
FileTypes()
Creates a new instance of FileTypes
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getContentTypeForSuffix(java.lang.String suffix)
Gets content type for the specified file suffix.
|
static java.lang.String |
getSuffixForContentType(java.lang.String contentType)
Gets a file suffix for the specified content type.
|
public static java.util.Map<java.lang.String,java.lang.String> suffixToType
public static java.util.Map<java.lang.String,java.lang.String> typeToSuffix
public static java.lang.String getSuffixForContentType(java.lang.String contentType)
public static java.lang.String getContentTypeForSuffix(java.lang.String suffix)
Copyright 2004-2015 Wandora Team