public abstract class SoundbankReader extends Object
SoundbankReader提供音效文件阅读服务。 
       的具体子类SoundbankReader解析一个给定的音库文件,产生Soundbank可被加载到一个对象Synthesizer 。 
      | Constructor and Description | 
|---|
| SoundbankReader() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Soundbank | getSoundbank(File file)
              从 
              File获得一个声音对象提供。 | 
| abstract Soundbank | getSoundbank(InputStream stream)
              从提供的 
              InputStream获取一个声音库对象。 | 
| abstract Soundbank | getSoundbank(URL url)
              从提供的URL获取声音库对象。 
             | 
public abstract Soundbank getSoundbank(URL url) throws InvalidMidiDataException, IOException
url - 表示 
            url库的URL。 
           InvalidMidiDataException - 如果该URL不指向该声卡读取器识别的有效MIDI声音库数据 
           IOException - 如果发生I / O错误 
           public abstract Soundbank getSoundbank(InputStream stream) throws InvalidMidiDataException, IOException
InputStream获得一个声音库对象。 
          stream - 
            InputStream代表声音库 
           InvalidMidiDataException - 如果流不指向此声卡读取器识别的有效MIDI音乐数据 
           IOException - 如果发生I / O错误 
           public abstract Soundbank getSoundbank(File file) throws InvalidMidiDataException, IOException
File获取一个声音库对象。 
          file - 代表 
            File库的File 
           InvalidMidiDataException - 如果该文件没有指向该声卡读取器识别的有效的MIDI声音库数据 
           IOException - 如果发生I / O错误 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.