Class DefaultRegistry

java.lang.Object
org.monte.media.av.Registry
org.monte.media.av.DefaultRegistry

public class DefaultRegistry extends Registry
DefaultRegistry.

FIXME - The registry should be read from a file.

Author:
Werner Randelshofer
  • Constructor Details

    • DefaultRegistry

      public DefaultRegistry()
  • Method Details

    • getCodecs

      public List<Codec> getCodecs(Format inputFormat, Format outputFormat)
      Description copied from class: Registry
      Gets all codecs which can transcode from the specified input format to the specified output format.
      Specified by:
      getCodecs in class Registry
      Parameters:
      inputFormat - The input format. Or null if any is acceptable.
      outputFormat - The output format. Or null if any is acceptable.
      Returns:
      An unmodifiale list of codes. If no codecs were found, an empty list is returned.
    • getExtension

      public String getExtension(Format ff)
      Specified by:
      getExtension in class Registry
    • getFileFormat

      public Format getFileFormat(File file)
      Specified by:
      getFileFormat in class Registry
    • getReaderFormats

      public List<Format> getReaderFormats()
      Specified by:
      getReaderFormats in class Registry
    • getReader

      public MovieReader getReader(Format fileFormat, File file) throws IOException
      Description copied from class: Registry
      Gets a reader for the specified file format and file.
      Specified by:
      getReader in class Registry
      Parameters:
      fileFormat - the desired file format.
      file - the desired file
      Returns:
      a reader or null
      Throws:
      IOException
    • getWriter

      public MovieWriter getWriter(Format fileFormat, File file) throws IOException
      Description copied from class: Registry
      Gets a writer for the specified file format and file.
      Specified by:
      getWriter in class Registry
      Parameters:
      fileFormat - the desired file format.
      file - the desired file
      Returns:
      a writer or null
      Throws:
      IOException
    • getWriterFormats

      public List<Format> getWriterFormats()
      Specified by:
      getWriterFormats in class Registry