Example usage for Java com.vaadin.util FileTypeResolver fields, constructors, methods, implement or subclass
The text is from its open source code.
Resource | DEFAULT_ICON Default icon given if no icon is specified for a mime-type. |
void | addExtension(String extension, String mimeType) Adds a mime-type mapping for the given filename extension. |
String | getMIMEType(String fileName) Gets the mime-type of a file. |
String | getMIMEType(File file) Gets the mime-type for a file. |