com.bramosystems.oss.player.core.client
Interface MimePool


public interface MimePool

Utility interface to get the file types associated with browser plugins.

A concrete implementation of this interface can be retrieved with the instance property

Since:
1.2
Author:
Sikirulai Braheem

Field Summary
static MimePool instance
          The static instance of the MimePool implementation
 
Method Summary
 java.util.HashMap<java.lang.String,java.lang.String> getMimeTypes()
          Returns the media mimeTypes registered on the application.
 java.util.Set<java.lang.String> getRegisteredExtensions(Plugin plugin)
          Returns the file extensions registered on the specified plugin
 java.util.Set<java.lang.String> getRegisteredProtocols(Plugin plugin)
          Returns the streaming protocols registered on the specified plugin
 

Field Detail

instance

static final MimePool instance
The static instance of the MimePool implementation

Method Detail

getRegisteredExtensions

java.util.Set<java.lang.String> getRegisteredExtensions(Plugin plugin)
                                                        throws PluginNotFoundException
Returns the file extensions registered on the specified plugin

Parameters:
plugin - the desired plugin
Returns:
the registered file extensions
Throws:
PluginNotFoundException

getRegisteredProtocols

java.util.Set<java.lang.String> getRegisteredProtocols(Plugin plugin)
                                                       throws PluginNotFoundException
Returns the streaming protocols registered on the specified plugin

Parameters:
plugin - the desired plugin
Returns:
the registered streaming protocols
Throws:
PluginNotFoundException

getMimeTypes

java.util.HashMap<java.lang.String,java.lang.String> getMimeTypes()
Returns the media mimeTypes registered on the application. These are the mimetypes listed in the bstplayer.media.mimeTypes property file.

The map is filled as mimeType,file-extension value pairs.

Returns:
the mimeTypes


Copyright © 2009-2011. All Rights Reserved.