Java com.vaadin.util FileTypeResolver fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.util FileTypeResolver fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.util FileTypeResolver.

The text is from its open source code.

Field

ResourceDEFAULT_ICON
Default icon given if no icon is specified for a mime-type.

Method

voidaddExtension(String extension, String mimeType)
Adds a mime-type mapping for the given filename extension.
StringgetMIMEType(String fileName)
Gets the mime-type of a file.
StringgetMIMEType(File file)
Gets the mime-type for a file.