FileDocCategorySizeDatePackage
AudioFileFormat.javaAPI DocAndroid 1.5 API4639Wed May 06 22:41:02 BST 2009javax.sound.sampled

AudioFileFormat

public class AudioFileFormat extends Object

Fields Summary
private Type
type
private int
byteLength
private AudioFormat
format
private int
frameLength
private HashMap
prop
Constructors Summary
protected AudioFileFormat(Type type, int byteLength, AudioFormat format, int frameLength)


      
             
             
              
        this.type = type;
        this.byteLength = byteLength;
        this.format = format;
        this.frameLength = frameLength;
    
public AudioFileFormat(Type type, AudioFormat format, int frameLength)

        this.type = type;
        this.format = format;
        this.frameLength = frameLength;
    
public AudioFileFormat(Type type, AudioFormat format, int frameLength, Map properties)

        this.type = type;
        this.format = format;
        this.frameLength = frameLength;
        prop = new HashMap<String, Object>();
        prop.putAll(properties);
    
Methods Summary
public intgetByteLength()

        return byteLength;
    
public javax.sound.sampled.AudioFormatgetFormat()

        return format;
    
public intgetFrameLength()

        return frameLength;
    
public java.lang.ObjectgetProperty(java.lang.String key)

        if (prop == null) {
            return null;
        }
        return prop.get(key);
    
public javax.sound.sampled.AudioFileFormat$TypegetType()

        return type;
    
public java.util.Mapproperties()

        if (prop == null) {
            return null;
        }
        return Collections.unmodifiableMap(prop);
    
public java.lang.StringtoString()

        return type + " (." + type.getExtension() + ") file, data format: " + format + //$NON-NLS-1$ //$NON-NLS-2$
            " frame length: " + frameLength; //$NON-NLS-1$