com.flagstone.transform.util.sound
Class SoundRegistry

java.lang.Object
  extended by com.flagstone.transform.util.sound.SoundRegistry

public final class SoundRegistry
extends Object

SoundRegistry is used to provide a directory for registering SoundProviders that are used to decode different sound formats.


Method Summary
static SoundDecoder getSoundProvider(String mimeType)
          Get an instance of the class that can be used to decode a sound of the specified format.
static void registerProvider(String mimeType, SoundProvider decoder)
          Register an SoundDecoder to handle images in the specified format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerProvider

public static void registerProvider(String mimeType,
                                    SoundProvider decoder)
Register an SoundDecoder to handle images in the specified format.

Parameters:
mimeType - the string identifying the image format.
decoder - any class that implements the SoundDecoder interface.

getSoundProvider

public static SoundDecoder getSoundProvider(String mimeType)
Get an instance of the class that can be used to decode a sound of the specified format.

Parameters:
mimeType - the string representing the format.
Returns:
an decoder that can be used to decode the sound data.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.