Java javax.activation MimetypesFileTypeMap fields, constructors, methods, implement or subclass

Example usage for Java javax.activation MimetypesFileTypeMap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.activation MimetypesFileTypeMap.

The text is from its open source code.

Constructor

MimetypesFileTypeMap()
The default constructor.
MimetypesFileTypeMap(String mimeTypeFileName)
Construct a MimetypesFileTypeMap with programmatic entries added from the named file.
MimetypesFileTypeMap(InputStream is)
Construct a MimetypesFileTypeMap with programmatic entries added from the InputStream.

Method

voidaddMimeTypes(String mime_types)
Prepend the MIME type values to the registry.
StringgetContentType(File f)
Return the MIME type of the file object.
StringgetContentType(String filename)
Return the MIME type based on the specified file name.