org.jboss.media.registry
Class JBossMediaFormatRegistry
java.lang.Object
org.jboss.media.registry.JBossMediaFormatRegistry
- public class JBossMediaFormatRegistry
- extends java.lang.Object
A facade around SimpleMediaFormatRegistry or ManagedMediaFormatRegistry.
SimpleMediaFormatRegistry is simpler to test.
ManagedMediaFormatRegistry should be used in deployment.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossMediaFormatRegistry
public JBossMediaFormatRegistry()
throws FormatAlreadyBoundException (src)
- Default constructor.
bind
public void bind(java.lang.String fileExtension,
MediaFormat (src) mediaFormat)
throws FormatAlreadyBoundException (src)
- Throws:
FormatAlreadyBoundException (src)
rebind
public void rebind(java.lang.String fileExtension,
MediaFormat (src) mediaFormat)
unbind
public void unbind(java.lang.String fileExtension)
throws FormatNotFoundException (src)
- Throws:
FormatNotFoundException (src)
lookup
public MediaFormat (src) lookup(java.lang.String fileExtension)
throws FormatNotFoundException (src)
- Throws:
FormatNotFoundException (src)
getFileExtensions
public java.util.Iterator getFileExtensions()
createMediaFormats
public static java.util.Map createMediaFormats()