IT. Expert System.

Android Reference

MimeTypeMap


android.webkit

Class MimeTypeMap

    • Method Detail

      • getFileExtensionFromUrl

        public static String getFileExtensionFromUrl(String url)
        Returns the file extension or an empty string iff there is no extension. This method is a convenience method for obtaining the extension of a url and has undefined results for other Strings.
        Parameters:
        url -
        Returns:
        The file extension of the given url.
      • hasMimeType

        public boolean hasMimeType(String mimeType)
        Return true if the given MIME type has an entry in the map.
        Parameters:
        mimeType - A MIME type (i.e. text/plain)
        Returns:
        True iff there is a mimeType entry in the map.
      • getMimeTypeFromExtension

        public String getMimeTypeFromExtension(String extension)
        Return the MIME type for the given extension.
        Parameters:
        extension - A file extension without the leading '.'
        Returns:
        The MIME type for the given extension or null iff there is none.
      • hasExtension

        public boolean hasExtension(String extension)
        Return true if the given extension has a registered MIME type.
        Parameters:
        extension - A file extension without the leading '.'
        Returns:
        True iff there is an extension entry in the map.
      • getExtensionFromMimeType

        public String getExtensionFromMimeType(String mimeType)
        Return the registered extension for the given MIME type. Note that some MIME types map to multiple extensions. This call will return the most common extension for the given MIME type.
        Parameters:
        mimeType - A MIME type (i.e. text/plain)
        Returns:
        The extension for the given MIME type or null iff there is none.
      • getSingleton

        public static MimeTypeMap getSingleton()
        Get the singleton instance of MimeTypeMap.
        Returns:
        The singleton instance of the MIME-type map.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 241 / 158697750. Delta: 0.03301 с