|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.sound.sampled.spi.AudioFileWriter
public abstract class AudioFileWriter
音頻檔案寫入服務的提供者。提供具體實作的類別可以從音頻串流寫入一種或多種型別的音頻檔案。
| 建構子摘要 | |
|---|---|
AudioFileWriter()
|
|
| 方法摘要 | |
|---|---|
abstract AudioFileFormat.Type[] |
getAudioFileTypes()
獲得此音頻檔案 writer 為其提供檔案寫入支持的檔案型別。 |
abstract AudioFileFormat.Type[] |
getAudioFileTypes(AudioInputStream stream)
獲得此音頻檔案 writer 可以從指定的音頻輸入串流寫入的檔案型別。 |
boolean |
isFileTypeSupported(AudioFileFormat.Type fileType)
指示此音頻檔案 writer 是否提供指定檔案型別的檔案寫入支持。 |
boolean |
isFileTypeSupported(AudioFileFormat.Type fileType,
AudioInputStream stream)
指示是否可以從指示的音頻輸入串流寫入指定型別的音頻檔案。 |
abstract int |
write(AudioInputStream stream,
AudioFileFormat.Type fileType,
File out)
將表示所指示檔案格式的音頻檔案的位元組串流寫入所提供的外部檔案。 |
abstract int |
write(AudioInputStream stream,
AudioFileFormat.Type fileType,
OutputStream out)
將表示所指示檔案型別的音頻檔案的位元組串流寫入所提供的輸出串流。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public AudioFileWriter()
| 方法詳細資訊 |
|---|
public abstract AudioFileFormat.Type[] getAudioFileTypes()
public boolean isFileTypeSupported(AudioFileFormat.Type fileType)
fileType - 為其查詢寫入功能的檔案型別
true;否則返回 falsepublic abstract AudioFileFormat.Type[] getAudioFileTypes(AudioInputStream stream)
stream - 為其查詢音頻檔案型別支持情況的音頻輸入串流
public boolean isFileTypeSupported(AudioFileFormat.Type fileType,
AudioInputStream stream)
fileType - 為其查詢寫入功能的檔案型別stream - 為其查詢檔案寫入支持情況的串流
true;否則返回 false
public abstract int write(AudioInputStream stream,
AudioFileFormat.Type fileType,
OutputStream out)
throws IOException
AudioSystem.NOT_SPECIFIED,則試圖寫入這樣一個檔案型別將失敗,並拋出 IOException。
stream - 套件含將寫入輸出串流的音頻資料的音頻輸入串流fileType - 將寫入輸出串流的檔案型別out - 應該在其中寫入檔案資料的串流
IOException - 如果發生 I/O 異常
IllegalArgumentException - 如果系統不支持該檔案型別isFileTypeSupported(AudioFileFormat.Type, AudioInputStream),
getAudioFileTypes()
public abstract int write(AudioInputStream stream,
AudioFileFormat.Type fileType,
File out)
throws IOException
stream - 套件含將寫入檔案中的音頻資料的音頻輸入串流fileType - 將寫入檔案的檔案型別out - 應該將檔案資料寫入其中的外部檔案
IOException - 如果發生 I/O 異常
IllegalArgumentException - 如果系統不支持該檔案格式isFileTypeSupported(javax.sound.sampled.AudioFileFormat.Type),
getAudioFileTypes()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。