|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.providers.AudioFileFormatProvider
com.groovemanager.sampled.providers.WavFormatProvider
This implementation of AudioFileFormatProvider reads the AudioFileFormat out of a wave file. It supports "RLND" and "slices" properties
| Field Summary | |
|---|---|
private static javax.sound.sampled.AudioFormat[] |
FORMATS
Supported formats |
private static java.lang.String[] |
PROPERTIES
Supported properties |
private static WavFileReader |
reader
WavFileReader used to delegate the calls |
private static javax.sound.sampled.AudioFileFormat.Type[] |
TYPES
Supported types |
| Constructor Summary | |
|---|---|
WavFormatProvider()
|
|
| Method Summary | |
|---|---|
protected static javax.sound.sampled.AudioFormat[] |
createFormats()
Create the supported AudioFormats |
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 |
boolean |
isFormatSupported(javax.sound.sampled.AudioFormat format)
Ask this provider, if the given AudioFormat is supported or not |
| Methods inherited from class com.groovemanager.sampled.providers.AudioFileFormatProvider |
|---|
isPropertySupported, isTypeSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final javax.sound.sampled.AudioFormat[] FORMATS
private static final java.lang.String[] PROPERTIES
private static final WavFileReader reader
private static final javax.sound.sampled.AudioFileFormat.Type[] TYPES
| Constructor Detail |
|---|
public WavFormatProvider()
| Method Detail |
|---|
protected static javax.sound.sampled.AudioFormat[] createFormats()
public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File f)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
AudioFileFormatProvider
getAudioFileFormat in class AudioFileFormatProviderf - 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 readingAudioFileFormatProvider.getAudioFileFormat(java.io.File)public javax.sound.sampled.AudioFormat[] getSupportedFormats()
AudioFileFormatProvider
getSupportedFormats in class AudioFileFormatProviderAudioFileFormatProvider.getSupportedFormats()public java.lang.String[] getSupportedProperties()
AudioFileFormatProvider
getSupportedProperties in class AudioFileFormatProviderAudioFileFormatProvider.getSupportedProperties()public javax.sound.sampled.AudioFileFormat.Type[] getSupportedTypes()
AudioFileFormatProvider
getSupportedTypes in class AudioFileFormatProviderAudioFileFormatProvider.getSupportedTypes()public boolean isFileSupported(java.io.File f)
AudioFileFormatProvider
isFileSupported in class AudioFileFormatProviderf - The file to ask for
AudioFileFormatProvider.isFileSupported(java.io.File)public boolean isFormatSupported(javax.sound.sampled.AudioFormat format)
AudioFileFormatProvider
isFormatSupported in class AudioFileFormatProviderformat - The AudioFormat to ask for
AudioFileFormatProvider.isFormatSupported(javax.sound.sampled.AudioFormat)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||