org.jboss.media.registry
Class SimpleMediaFormatRegistry

java.lang.Object
  extended byorg.jboss.media.registry.SimpleMediaFormatRegistry
Direct Known Subclasses:
ReflectionMediaFormatRegistry (src)

public class SimpleMediaFormatRegistry
extends java.lang.Object

A simple implementation of a MediaFormat registry.


Constructor Summary
SimpleMediaFormatRegistry()
           
SimpleMediaFormatRegistry(java.util.Map initialEntries)
           
 
Method Summary
 void bind(java.lang.String fileExtension, MediaFormat (src)  mediaFormat)
           
 java.util.Iterator fileExtensions()
           
 MediaFormat (src) lookup(java.lang.String fileExtension)
           
 void rebind(java.lang.String fileExtension, MediaFormat (src)  mediaFormat)
           
 void unbind(java.lang.String fileExtension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMediaFormatRegistry

public SimpleMediaFormatRegistry()

SimpleMediaFormatRegistry

public SimpleMediaFormatRegistry(java.util.Map initialEntries)
                          throws FormatAlreadyBoundException (src) 
Method Detail

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)

fileExtensions

public java.util.Iterator fileExtensions()