public abstract class SoundbankReader extends Object
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。
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
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.