com.groovemanager.spi.rex
Class REXFormatProvider

java.lang.Object
  extended by com.groovemanager.sampled.providers.AudioFileFormatProvider
      extended by com.groovemanager.spi.rex.REXFormatProvider

public class REXFormatProvider
extends AudioFileFormatProvider

A REXFormatProvider can read AudioFileFormat out of REX files

Author:
Manu Robledo

Field Summary
(package private) static javax.sound.sampled.AudioFormat[] FORMATS
          The formats supported by this provider
(package private) static java.lang.String[] PROPERTIES
          The property keys supported by this provider
(package private) static REXFileReader reader
          The REXFileReader to be used for delegating calls
private static javax.sound.sampled.AudioFileFormat.Type[] TYPES
          The types supported by tis provider
 
Constructor Summary
REXFormatProvider()
           
 
Method Summary
 javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File f)
          Get the AudioFileFormat out of the given file
 javax.sound.sampled.AudioFormat[] getSupportedFormats()
          Get the AudioFormats supported by this provider
 java.lang.String[] getSupportedProperties()
          Get the property keys understood by this provider
 javax.sound.sampled.AudioFileFormat.Type[] getSupportedTypes()
          Get the AudioFileFormat.Types supported by this provider
 boolean isFileSupported(java.io.File f)
          Ask this provider, if it is able to get the AudioFileFormat out of this file
 
Methods inherited from class com.groovemanager.sampled.providers.AudioFileFormatProvider
isFormatSupported, isPropertySupported, isTypeSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMATS

static final javax.sound.sampled.AudioFormat[] FORMATS
The formats supported by this provider


PROPERTIES

static final java.lang.String[] PROPERTIES
The property keys supported by this provider


reader

static final REXFileReader reader
The REXFileReader to be used for delegating calls


TYPES

private static final javax.sound.sampled.AudioFileFormat.Type[] TYPES
The types supported by tis provider

Constructor Detail

REXFormatProvider

public REXFormatProvider()
Method Detail

getAudioFileFormat

public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File f)
                                                       throws javax.sound.sampled.UnsupportedAudioFileException,
                                                              java.io.IOException
Description copied from class: AudioFileFormatProvider
Get the AudioFileFormat out of the given file

Specified by:
getAudioFileFormat in class AudioFileFormatProvider
Parameters:
f - The file to be read
Returns:
The AudioFileFormat of the specified file.
Throws:
javax.sound.sampled.UnsupportedAudioFileException - If the format of the file is not known or invalid
java.io.IOException - If an I/O Error occured during reading
See Also:
AudioFileFormatProvider.getAudioFileFormat(java.io.File)

getSupportedFormats

public javax.sound.sampled.AudioFormat[] getSupportedFormats()
Description copied from class: AudioFileFormatProvider
Get the AudioFormats supported by this provider

Specified by:
getSupportedFormats in class AudioFileFormatProvider
Returns:
The audio formats supported by this provider
See Also:
AudioFileFormatProvider.getSupportedFormats()

getSupportedProperties

public java.lang.String[] getSupportedProperties()
Description copied from class: AudioFileFormatProvider
Get the property keys understood by this provider

Specified by:
getSupportedProperties in class AudioFileFormatProvider
Returns:
The property keys of the properties this provider can provide
See Also:
AudioFileFormatProvider.getSupportedProperties()

getSupportedTypes

public javax.sound.sampled.AudioFileFormat.Type[] getSupportedTypes()
Description copied from class: AudioFileFormatProvider
Get the AudioFileFormat.Types supported by this provider

Specified by:
getSupportedTypes in class AudioFileFormatProvider
Returns:
The audio file types supported by this provider
See Also:
AudioFileFormatProvider.getSupportedTypes()

isFileSupported

public boolean isFileSupported(java.io.File f)
Description copied from class: AudioFileFormatProvider
Ask this provider, if it is able to get the AudioFileFormat out of this file

Specified by:
isFileSupported in class AudioFileFormatProvider
Parameters:
f - The file to ask for
Returns:
true, if this file is supported, false otherwise
See Also:
AudioFileFormatProvider.isFileSupported(java.io.File)