FileDocCategorySizeDatePackage
MidiFileFormat.javaAPI DocAndroid 1.5 API2581Wed May 06 22:41:02 BST 2009javax.sound.midi

MidiFileFormat

public class MidiFileFormat extends Object

Fields Summary
public static final int
UNKNOWN_LENGTH
protected int
byteLength
protected float
divisionType
protected long
microsecondLength
protected int
resolution
protected int
type
private HashMap
properties
Constructors Summary
public MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds)


            
              
        this.type = type;
        this.divisionType = divisionType;
        this.resolution = resolution;
        this.byteLength = bytes;
        this.microsecondLength = microseconds;
        this.properties = new HashMap<String, Object>();
    
public MidiFileFormat(int type, float divisionType, int resolution, int bytes, long microseconds, Map properties)

        this.type = type;
        this.divisionType = divisionType;
        this.resolution = resolution;
        this.byteLength = bytes;
        this.microsecondLength = microseconds;
        
        this.properties = new HashMap<String, Object>();
        this.properties.putAll(properties);
    
Methods Summary
public intgetByteLength()

        return byteLength;
    
public floatgetDivisionType()

        return divisionType;
    
public longgetMicrosecondLength()

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

        return properties.get(key);
    
public intgetResolution()

        return resolution;
    
public intgetType()

        return type;
    
public java.util.Mapproperties()

        return Collections.unmodifiableMap(properties);