|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.providers.AudioFileFormatProvider
An AudioFileFormatProvider is something similar to the AudioFileReader SPI, but as the name implies, it can only provide AudioFileFormat objects, not AudioInputStreams. An AudioFileFormatProvider can be propagated to an AudioManager.
| Constructor Summary | |
|---|---|
AudioFileFormatProvider()
|
|
| Method Summary | |
|---|---|
abstract javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.io.File f)
Get the AudioFileFormat out of the given file |
abstract javax.sound.sampled.AudioFormat[] |
getSupportedFormats()
Get the AudioFormats supported by this provider |
abstract java.lang.String[] |
getSupportedProperties()
Get the property keys understood by this provider |
abstract javax.sound.sampled.AudioFileFormat.Type[] |
getSupportedTypes()
Get the AudioFileFormat.Types supported by this provider |
abstract boolean |
isFileSupported(java.io.File f)
Ask this provider, if it is able to get the AudioFileFormat out of this file |
boolean |
isFormatSupported(javax.sound.sampled.AudioFormat format)
Ask this provider, if the given AudioFormat is supported or not |
boolean |
isPropertySupported(java.lang.String property)
Ask this provider, if it supports the property specified by the given kay. |
boolean |
isTypeSupported(javax.sound.sampled.AudioFileFormat.Type type)
Ask this provider, if it supports the specified audio file type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioFileFormatProvider()
| Method Detail |
|---|
public abstract javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File f)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
f - The file to be read
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 readingpublic abstract javax.sound.sampled.AudioFormat[] getSupportedFormats()
public abstract java.lang.String[] getSupportedProperties()
public abstract javax.sound.sampled.AudioFileFormat.Type[] getSupportedTypes()
public abstract boolean isFileSupported(java.io.File f)
f - The file to ask for
public boolean isFormatSupported(javax.sound.sampled.AudioFormat format)
format - The AudioFormat to ask for
public boolean isPropertySupported(java.lang.String property)
property - The property key to ask for
public boolean isTypeSupported(javax.sound.sampled.AudioFileFormat.Type type)
type - The AudioTypeFormat.Type to ask for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||