FileDocCategorySizeDatePackage
FormatConversionProvider.javaAPI DocAndroid 1.5 API3081Wed May 06 22:41:02 BST 2009javax.sound.sampled.spi

FormatConversionProvider

public abstract class FormatConversionProvider extends Object

Fields Summary
Constructors Summary
Methods Summary
public abstract javax.sound.sampled.AudioInputStreamgetAudioInputStream(javax.sound.sampled.AudioFormat.Encoding targetEncoding, javax.sound.sampled.AudioInputStream sourceStream)

public abstract javax.sound.sampled.AudioInputStreamgetAudioInputStream(javax.sound.sampled.AudioFormat targetFormat, javax.sound.sampled.AudioInputStream sourceStream)

public abstract javax.sound.sampled.AudioFormat.Encoding[]getSourceEncodings()

public abstract javax.sound.sampled.AudioFormat.Encoding[]getTargetEncodings(javax.sound.sampled.AudioFormat sourceFormat)

public abstract javax.sound.sampled.AudioFormat.Encoding[]getTargetEncodings()

public abstract javax.sound.sampled.AudioFormat[]getTargetFormats(javax.sound.sampled.AudioFormat.Encoding targetFormat, javax.sound.sampled.AudioFormat sourceFormat)

public booleanisConversionSupported(javax.sound.sampled.AudioFormat.Encoding targetEncoding, javax.sound.sampled.AudioFormat sourceFormat)

        AudioFormat.Encoding[] encodings = getTargetEncodings(sourceFormat);
        for (Encoding element : encodings) {
            if (targetEncoding.equals(element)) {
                return true;
            }
        }
        return false;
    
public booleanisConversionSupported(javax.sound.sampled.AudioFormat targetFormat, javax.sound.sampled.AudioFormat sourceFormat)

        AudioFormat[] formats = getTargetFormats(targetFormat.getEncoding(),
                sourceFormat);
        for (AudioFormat element : formats) {
            if (targetFormat.equals(element)) {
                return true;
            }
        }
        return false;
    
public booleanisSourceEncodingSupported(javax.sound.sampled.AudioFormat.Encoding sourceEncoding)

        AudioFormat.Encoding[] encodings = getSourceEncodings();
        for (Encoding element : encodings) {
            if (sourceEncoding.equals(element)) {
                return true;
            }
        }
        return false;
    
public booleanisTargetEncodingSupported(javax.sound.sampled.AudioFormat.Encoding targetEncoding)

        AudioFormat.Encoding[] encodings = getTargetEncodings();
        for (Encoding element : encodings) {
            if (targetEncoding.equals(element)) {
                return true;
            }
        }
        return false;