FileDocCategorySizeDatePackage
MidiFileWriter.javaAPI DocAndroid 1.5 API1870Wed May 06 22:41:02 BST 2009javax.sound.midi.spi

MidiFileWriter

public abstract class MidiFileWriter extends Object

Fields Summary
Constructors Summary
Methods Summary
public abstract int[]getMidiFileTypes()

public abstract int[]getMidiFileTypes(javax.sound.midi.Sequence sequence)

public booleanisFileTypeSupported(int fileType)

        int[] supported = getMidiFileTypes();
        for (int element : supported) {
            if (fileType == element) {
                return true;
            }
        }
        return false;
    
public booleanisFileTypeSupported(int fileType, javax.sound.midi.Sequence sequence)

        int[] supported = getMidiFileTypes(sequence);
        for (int element : supported) {
            if (fileType == element) {
                return true;
            }
        }
        return false;
    
public abstract intwrite(javax.sound.midi.Sequence in, int fileType, java.io.File out)

public abstract intwrite(javax.sound.midi.Sequence in, int fileType, java.io.OutputStream out)