|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.sound.midi.spi.MidiFileWriter
public abstract class MidiFileWriter
MidiFileWriter 提供 MIDI 檔案寫入服務。實作此介面的類別可以從 物件寫入一種或多種型別的 MIDI 檔案。
Sequence
| 建構子摘要 | |
|---|---|
MidiFileWriter()
|
|
| 方法摘要 | |
|---|---|
abstract int[] |
getMidiFileTypes()
獲得此檔案 writer 為其提供檔案寫入支持的 MIDI 檔案型別的集合。 |
abstract int[] |
getMidiFileTypes(Sequence sequence)
獲得此檔案 writer 可從指定的序列寫入的檔案型別。 |
boolean |
isFileTypeSupported(int fileType)
指示此檔案 writer 是否提供指定 MIDI 檔案型別的檔案寫入支持。 |
boolean |
isFileTypeSupported(int fileType,
Sequence sequence)
指示是否可從指示的序列寫入指定檔案型別的 MIDI 檔案。 |
abstract int |
write(Sequence in,
int fileType,
File out)
寫入表示指示為所提供外部檔案的檔案型別的 MIDI 檔案的位元組串流。 |
abstract int |
write(Sequence in,
int fileType,
OutputStream out)
寫入表示指示為所提供輸出串流的檔案型別的 MIDI 檔案的位元組串流。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public MidiFileWriter()
| 方法詳細資訊 |
|---|
public abstract int[] getMidiFileTypes()
public abstract int[] getMidiFileTypes(Sequence sequence)
sequence - 為其查詢 MIDI 檔案型別支持的序列
public boolean isFileTypeSupported(int fileType)
fileType - 查詢其寫入功能的檔案型別
true;否則返回 false
public boolean isFileTypeSupported(int fileType,
Sequence sequence)
fileType - 查詢其寫入功能的檔案型別sequence - 查詢其檔案寫入支持的序列
true;否則返回 false
public abstract int write(Sequence in,
int fileType,
OutputStream out)
throws IOException
in - 套件含要寫入檔案的 MIDI 資料的序列fileType - 要寫入輸出串流的檔案型別out - 應將檔案資料寫入的串流
IOException - 如果發生 I/O 異常
IllegalArgumentException - 如果檔案 writer 不支持檔案型別isFileTypeSupported(int, Sequence),
getMidiFileTypes(Sequence)
public abstract int write(Sequence in,
int fileType,
File out)
throws IOException
in - 套件含要寫入外部檔案的 MIDI 資料的序列fileType - 要寫入外部檔案的檔案型別out - 應將檔案資料寫入的外部檔案
IOException - 如果發生 I/O 異常
IllegalArgumentException - 如果此檔案 writer 不支持檔案型別isFileTypeSupported(int, Sequence),
getMidiFileTypes(Sequence)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。