Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
60f4ef3a
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
60f4ef3a
编写于
3月 21, 2014
作者:
S
serb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8037117: Javadoc cleanup of javax.sound.midi.spi package
Reviewed-by: art, pchelko
上级
3a31ad6e
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
158 addition
and
154 deletion
+158
-154
src/share/classes/javax/sound/midi/spi/MidiDeviceProvider.java
...hare/classes/javax/sound/midi/spi/MidiDeviceProvider.java
+16
-17
src/share/classes/javax/sound/midi/spi/MidiFileReader.java
src/share/classes/javax/sound/midi/spi/MidiFileReader.java
+74
-69
src/share/classes/javax/sound/midi/spi/MidiFileWriter.java
src/share/classes/javax/sound/midi/spi/MidiFileWriter.java
+40
-38
src/share/classes/javax/sound/midi/spi/SoundbankReader.java
src/share/classes/javax/sound/midi/spi/SoundbankReader.java
+28
-30
未找到文件。
src/share/classes/javax/sound/midi/spi/MidiDeviceProvider.java
浏览文件 @
60f4ef3a
/*
/*
* Copyright (c) 1999, 20
03
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
14
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -26,26 +26,24 @@
...
@@ -26,26 +26,24 @@
package
javax.sound.midi.spi
;
package
javax.sound.midi.spi
;
import
javax.sound.midi.MidiDevice
;
import
javax.sound.midi.MidiDevice
;
import
javax.sound.midi.MidiUnavailableException
;
/**
/**
* A <code>MidiDeviceProvider</code> is a factory or provider for a particular
* A {@code MidiDeviceProvider} is a factory or provider for a particular type
* type of MIDI device.
* of MIDI device. This mechanism allows the implementation to determine how
* This mechanism allows the implementation to determine
* resources are managed in the creation and management of a device.
* how resources are managed in the creation and management of
* a device.
*
*
* @author Kara Kytle
* @author Kara Kytle
*/
*/
public
abstract
class
MidiDeviceProvider
{
public
abstract
class
MidiDeviceProvider
{
/**
/**
* Indicates whether the device provider supports the device represented by
* Indicates whether the device provider supports the device represented by
* the specified device info object.
* the specified device info object.
* @param info an info object that describes the device for which support is queried
*
* @return <code>true</code> if the specified device is supported,
* @param info an info object that describes the device for which support
* otherwise <code>false</code>
* is queried
* @return {@code true} if the specified device is supported, otherwise
* {@code false}
*/
*/
public
boolean
isDeviceSupported
(
MidiDevice
.
Info
info
)
{
public
boolean
isDeviceSupported
(
MidiDevice
.
Info
info
)
{
...
@@ -59,21 +57,22 @@ public abstract class MidiDeviceProvider {
...
@@ -59,21 +57,22 @@ public abstract class MidiDeviceProvider {
return
false
;
return
false
;
}
}
/**
/**
* Obtains the set of info objects representing the device
* Obtains the set of info objects representing the device or devices
* or devices provided by this <code>MidiDeviceProvider</code>.
* provided by this {@code MidiDeviceProvider}.
*
* @return set of device info objects
* @return set of device info objects
*/
*/
public
abstract
MidiDevice
.
Info
[]
getDeviceInfo
();
public
abstract
MidiDevice
.
Info
[]
getDeviceInfo
();
/**
/**
* Obtains an instance of the device represented by the info object.
* Obtains an instance of the device represented by the info object.
*
* @param info an info object that describes the desired device
* @param info an info object that describes the desired device
* @return device instance
* @return device instance
* @throws IllegalArgumentException if the info object specified does not
* @throws IllegalArgumentException if the info object specified does not
* match the info object for a device supported by this <code>MidiDeviceProvider</code>.
* match the info object for a device supported by this
* {@code MidiDeviceProvider}
*/
*/
public
abstract
MidiDevice
getDevice
(
MidiDevice
.
Info
info
);
public
abstract
MidiDevice
getDevice
(
MidiDevice
.
Info
info
);
}
}
src/share/classes/javax/sound/midi/spi/MidiFileReader.java
浏览文件 @
60f4ef3a
/*
/*
* Copyright (c) 1999, 20
02
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
14
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -35,9 +35,10 @@ import javax.sound.midi.Sequence;
...
@@ -35,9 +35,10 @@ import javax.sound.midi.Sequence;
import
javax.sound.midi.InvalidMidiDataException
;
import
javax.sound.midi.InvalidMidiDataException
;
/**
/**
* A <code>MidiFileReader</code> supplies MIDI file-reading services. Classes implementing this
* A {@code MidiFileReader} supplies MIDI file-reading services. Classes
* interface can parse the format information from one or more types of
* implementing this interface can parse the format information from one or more
* MIDI file, and can produce a <code>Sequence</code> object from files of these types.
* types of MIDI file, and can produce a {@link Sequence} object from files of
* these types.
*
*
* @author Kara Kytle
* @author Kara Kytle
* @since 1.3
* @since 1.3
...
@@ -45,98 +46,102 @@ import javax.sound.midi.InvalidMidiDataException;
...
@@ -45,98 +46,102 @@ import javax.sound.midi.InvalidMidiDataException;
public
abstract
class
MidiFileReader
{
public
abstract
class
MidiFileReader
{
/**
/**
* Obtains the MIDI file format of the input stream provided.
The stream must
* Obtains the MIDI file format of the input stream provided.
The stream
*
point to valid MIDI file data.
In general, MIDI file readers may
*
must point to valid MIDI file data.
In general, MIDI file readers may
* need to read some data from the stream before determining whether they
* need to read some data from the stream before determining whether they
* support it.
These parsers must
* support it.
These parsers must be able to mark the stream, read enough
*
be able to mark the stream, read enough data to determine whether they
*
data to determine whether they support the stream, and, if not, reset the
* s
upport the stream, and, if not, reset the stream's read pointer to its original
* s
tream's read pointer to its original position. If the input stream does
*
position. If the input stream does not support this, this method may fail
*
not support this, this method may fail with an {@code IOException}.
*
with an <code>IOException</code>.
*
* @param
stream the input stream from which file format information should be
* @param
stream the input stream from which file format information
* extracted
*
should be
extracted
* @return a
<code>MidiFileFormat</code>
object describing the MIDI file format
* @return a
{@code MidiFileFormat}
object describing the MIDI file format
* @throws InvalidMidiDataException if the stream does not point to valid
MIDI
* @throws InvalidMidiDataException if the stream does not point to valid
* file data recognized by the system
*
MIDI
file data recognized by the system
* @throws IOException if an I/O exception occurs
* @throws IOException if an I/O exception occurs
* @see InputStream#markSupported
* @see InputStream#markSupported
* @see InputStream#mark
* @see InputStream#mark
*/
*/
public
abstract
MidiFileFormat
getMidiFileFormat
(
InputStream
stream
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
MidiFileFormat
getMidiFileFormat
(
InputStream
stream
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains the MIDI file format of the URL provided. The URL must
* Obtains the MIDI file format of the URL provided. The URL must point to
* point to valid MIDI file data.
* valid MIDI file data.
*
* @param url the URL from which file format information should be
* @param url the URL from which file format information should be
* extracted
* extracted
* @return a
<code>MidiFileFormat</code>
object describing the MIDI file format
* @return a
{@code MidiFileFormat}
object describing the MIDI file format
* @throws InvalidMidiDataException if the URL does not point to valid MIDI
* @throws InvalidMidiDataException if the URL does not point to valid MIDI
* file data recognized by the system
* file data recognized by the system
* @throws IOException if an I/O exception occurs
* @throws IOException if an I/O exception occurs
*/
*/
public
abstract
MidiFileFormat
getMidiFileFormat
(
URL
url
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
MidiFileFormat
getMidiFileFormat
(
URL
url
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains the MIDI file format of the <code>File</code> provided.
* Obtains the MIDI file format of the {@code File} provided. The
* The <code>File</code> must point to valid MIDI file data.
* {@code File} must point to valid MIDI file data.
* @param file the <code>File</code> from which file format information should be
*
* extracted
* @param file the {@code File} from which file format information should
* @return a <code>MidiFileFormat</code> object describing the MIDI file format
* be extracted
* @throws InvalidMidiDataException if the <code>File</code> does not point to valid MIDI
* @return a {@code MidiFileFormat} object describing the MIDI file format
* file data recognized by the system
* @throws InvalidMidiDataException if the {@code File} does not point to
* valid MIDI file data recognized by the system
* @throws IOException if an I/O exception occurs
* @throws IOException if an I/O exception occurs
*/
*/
public
abstract
MidiFileFormat
getMidiFileFormat
(
File
file
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
MidiFileFormat
getMidiFileFormat
(
File
file
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains a MIDI sequence from the input stream provided. The stream must
* Obtains a MIDI sequence from the input stream provided. The stream must
* point to valid MIDI file data.
In general, MIDI file readers may
* point to valid MIDI file data.
In general, MIDI file readers may need to
*
need to read some data from the stream before determining whether they
*
read some data from the stream before determining whether they support
*
support it. These parsers must
*
it. These parsers must be able to mark the stream, read enough data to
*
be able to mark the stream, read enough data to determine whether they
*
determine whether they support the stream, and, if not, reset the
* s
upport the stream, and, if not, reset the stream's read pointer to its original
* s
tream's read pointer to its original position. If the input stream does
*
position. If the input stream does not support this, this method may fail
*
not support this, this method may fail with an IOException.
*
with an IOException.
*
* @param
stream the input stream from which the <code>Sequence</code> should be
* @param
stream the input stream from which the {@code Sequence} should
* constructed
*
be
constructed
* @return a
<code>Sequence</code>
object based on the MIDI file data contained
* @return a
{@code Sequence}
object based on the MIDI file data contained
* in the input stream.
* in the input stream.
* @throws InvalidMidiDataException if the stream does not point to valid
MIDI
* @throws InvalidMidiDataException if the stream does not point to valid
* file data recognized by the system
*
MIDI
file data recognized by the system
* @throws IOException if an I/O exception occurs
* @throws IOException if an I/O exception occurs
* @see InputStream#markSupported
* @see InputStream#markSupported
* @see InputStream#mark
* @see InputStream#mark
*/
*/
public
abstract
Sequence
getSequence
(
InputStream
stream
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
Sequence
getSequence
(
InputStream
stream
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains a MIDI sequence from the URL provided.
The URL must
* Obtains a MIDI sequence from the URL provided.
The URL must point to
*
point to
valid MIDI file data.
* valid MIDI file data.
*
@param url the URL for which the <code>Sequence</code> should be
*
* constructed
*
@param url the URL for which the {@code Sequence} should be
constructed
* @return a
<code>Sequence</code> object based on the MIDI file data pointed
* @return a
{@code Sequence} object based on the MIDI file data pointed to
*
to
by the URL
*
by the URL
* @throws InvalidMidiDataException if the URL does not point to valid MIDI
* @throws InvalidMidiDataException if the URL does not point to valid MIDI
* file data recognized by the system
* file data recognized by the system
* @throws IOException if an I/O exception occurs
* @throws IOException if an I/O exception occurs
*/
*/
public
abstract
Sequence
getSequence
(
URL
url
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
Sequence
getSequence
(
URL
url
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains a MIDI sequence from the <code>File</code> provided. The <code>File</code> must
* Obtains a MIDI sequence from the {@code File} provided. The {@code File}
* point to valid MIDI file data.
* must point to valid MIDI file data.
* @param file the <code>File</code> from which the <code>Sequence</code> should be
*
* @param file the {@code File} from which the {@code Sequence} should be
* constructed
* constructed
* @return a
<code>Sequence</code> object based on the MIDI file data pointed
* @return a
{@code Sequence} object based on the MIDI file data pointed to
*
to by the <code>File</code>
*
by the {@code File}
* @throws InvalidMidiDataException if the
<code>File</code> does not point to valid MIDI
* @throws InvalidMidiDataException if the
{@code File} does not point to
* file data recognized by the system
*
valid MIDI
file data recognized by the system
* @throws IOException if an I/O exception occurs
* @throws IOException if an I/O exception occurs
*/
*/
public
abstract
Sequence
getSequence
(
File
file
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
Sequence
getSequence
(
File
file
)
throws
InvalidMidiDataException
,
IOException
;
}
}
src/share/classes/javax/sound/midi/spi/MidiFileWriter.java
浏览文件 @
60f4ef3a
/*
/*
* Copyright (c) 1999, 20
02
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
14
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -30,45 +30,44 @@ import java.io.IOException;
...
@@ -30,45 +30,44 @@ import java.io.IOException;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
import
javax.sound.midi.Sequence
;
import
javax.sound.midi.Sequence
;
import
javax.sound.midi.MidiFileFormat
;
/**
/**
* A
<code>MidiFileWriter</code> supplies MIDI file-writing services. Classes
* A
{@code MidiFileWriter} supplies MIDI file-writing services. Classes that
*
that implement this interface can write one or more types of MIDI file from
*
implement this interface can write one or more types of MIDI file from a
*
a <code>{@link Sequence}</code>
object.
*
{@link Sequence}
object.
*
*
* @author Kara Kytle
* @author Kara Kytle
* @since 1.3
* @since 1.3
*/
*/
public
abstract
class
MidiFileWriter
{
public
abstract
class
MidiFileWriter
{
/**
/**
* Obtains the set of MIDI file types for which file writing support is
* Obtains the set of MIDI file types for which file writing support is
* provided by this file writer.
* provided by this file writer.
* @return array of file types. If no file types are supported,
*
* an array of length 0 is returned.
* @return array of file types. If no file types are supported, an array of
* length 0 is returned.
*/
*/
public
abstract
int
[]
getMidiFileTypes
();
public
abstract
int
[]
getMidiFileTypes
();
/**
/**
* Obtains the file types that this file writer can write from the
* Obtains the file types that this file writer can write from the sequence
* sequence specified.
* specified.
* @param sequence the sequence for which MIDI file type support
*
* is queried
* @param sequence the sequence for which MIDI file type support is
* @return array of file types. If no file types are supported,
* queried
* returns an array of length 0.
* @return array of file types. If no file types are supported, returns an
* array of length 0.
*/
*/
public
abstract
int
[]
getMidiFileTypes
(
Sequence
sequence
);
public
abstract
int
[]
getMidiFileTypes
(
Sequence
sequence
);
/**
/**
* Indicates whether file writing support for the specified MIDI file type
* Indicates whether file writing support for the specified MIDI file type
* is provided by this file writer.
* is provided by this file writer.
*
* @param fileType the file type for which write capabilities are queried
* @param fileType the file type for which write capabilities are queried
* @return
<code>true</code> if the file type is supported,
* @return
{@code true} if the file type is supported, otherwise
*
otherwise <code>false</code>
*
{@code false}
*/
*/
public
boolean
isFileTypeSupported
(
int
fileType
)
{
public
boolean
isFileTypeSupported
(
int
fileType
)
{
...
@@ -81,14 +80,14 @@ public abstract class MidiFileWriter {
...
@@ -81,14 +80,14 @@ public abstract class MidiFileWriter {
return
false
;
return
false
;
}
}
/**
/**
* Indicates whether a MIDI file of the file type specified can be written
* Indicates whether a MIDI file of the file type specified can be written
* from the sequence indicated.
* from the sequence indicated.
*
* @param fileType the file type for which write capabilities are queried
* @param fileType the file type for which write capabilities are queried
* @param sequence the sequence for which file writing support is queried
* @param sequence the sequence for which file writing support is queried
* @return
<code>true</code>
if the file type is supported for this sequence,
* @return
{@code true}
if the file type is supported for this sequence,
*
otherwise <code>false</code>
*
otherwise {@code false}
*/
*/
public
boolean
isFileTypeSupported
(
int
fileType
,
Sequence
sequence
)
{
public
boolean
isFileTypeSupported
(
int
fileType
,
Sequence
sequence
)
{
...
@@ -101,10 +100,10 @@ public abstract class MidiFileWriter {
...
@@ -101,10 +100,10 @@ public abstract class MidiFileWriter {
return
false
;
return
false
;
}
}
/**
/**
* Writes a stream of bytes representing a MIDI file of the file type
* Writes a stream of bytes representing a MIDI file of the file type
* indicated to the output stream provided.
* indicated to the output stream provided.
*
* @param in sequence containing MIDI data to be written to the file
* @param in sequence containing MIDI data to be written to the file
* @param fileType type of the file to be written to the output stream
* @param fileType type of the file to be written to the output stream
* @param out stream to which the file data should be written
* @param out stream to which the file data should be written
...
@@ -115,13 +114,15 @@ public abstract class MidiFileWriter {
...
@@ -115,13 +114,15 @@ public abstract class MidiFileWriter {
* @see #isFileTypeSupported(int, Sequence)
* @see #isFileTypeSupported(int, Sequence)
* @see #getMidiFileTypes(Sequence)
* @see #getMidiFileTypes(Sequence)
*/
*/
public
abstract
int
write
(
Sequence
in
,
int
fileType
,
OutputStream
out
)
throws
IOException
;
public
abstract
int
write
(
Sequence
in
,
int
fileType
,
OutputStream
out
)
throws
IOException
;
/**
/**
* Writes a stream of bytes representing a MIDI file of the file type
* Writes a stream of bytes representing a MIDI file of the file type
* indicated to the external file provided.
* indicated to the external file provided.
* @param in sequence containing MIDI data to be written to the external file
*
* @param in sequence containing MIDI data to be written to the external
* file
* @param fileType type of the file to be written to the external file
* @param fileType type of the file to be written to the external file
* @param out external file to which the file data should be written
* @param out external file to which the file data should be written
* @return the number of bytes written to the file
* @return the number of bytes written to the file
...
@@ -131,5 +132,6 @@ public abstract class MidiFileWriter {
...
@@ -131,5 +132,6 @@ public abstract class MidiFileWriter {
* @see #isFileTypeSupported(int, Sequence)
* @see #isFileTypeSupported(int, Sequence)
* @see #getMidiFileTypes(Sequence)
* @see #getMidiFileTypes(Sequence)
*/
*/
public
abstract
int
write
(
Sequence
in
,
int
fileType
,
File
out
)
throws
IOException
;
public
abstract
int
write
(
Sequence
in
,
int
fileType
,
File
out
)
throws
IOException
;
}
}
src/share/classes/javax/sound/midi/spi/SoundbankReader.java
浏览文件 @
60f4ef3a
/*
/*
* Copyright (c) 1999, 20
03
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
14
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -25,60 +25,58 @@
...
@@ -25,60 +25,58 @@
package
javax.sound.midi.spi
;
package
javax.sound.midi.spi
;
import
java.io.InputStream
;
import
java.io.IOException
;
import
java.io.File
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URL
;
import
java.net.URL
;
import
javax.sound.midi.Soundbank
;
import
javax.sound.midi.InvalidMidiDataException
;
import
javax.sound.midi.InvalidMidiDataException
;
import
javax.sound.midi.Soundbank
;
/**
/**
* A
<code>SoundbankReader</code> supplies soundbank file-reading services.
* A
{@code SoundbankReader} supplies soundbank file-reading services. Concrete
*
Concrete subclasses of <code>SoundbankReader</code> parse a given
*
subclasses of {@code SoundbankReader} parse a given soundbank file, producing
*
soundbank file, producing a {@link javax.sound.midi.Soundbank}
*
a {@link javax.sound.midi.Soundbank} object that can be loaded into a
*
object that can be loaded into a
{@link javax.sound.midi.Synthesizer}.
* {@link javax.sound.midi.Synthesizer}.
*
*
* @since 1.3
* @since 1.3
* @author Kara Kytle
* @author Kara Kytle
*/
*/
public
abstract
class
SoundbankReader
{
public
abstract
class
SoundbankReader
{
/**
/**
* Obtains a soundbank object from the URL provided.
* Obtains a soundbank object from the URL provided.
*
* @param url URL representing the soundbank.
* @param url URL representing the soundbank.
* @return soundbank object
* @return soundbank object
* @throws InvalidMidiDataException if the URL does not point to
* @throws InvalidMidiDataException if the URL does not point to
valid MIDI
*
valid MIDI
soundbank data recognized by this soundbank reader
*
soundbank data recognized by this soundbank reader
* @throws IOException if an I/O error occurs
* @throws IOException if an I/O error occurs
*/
*/
public
abstract
Soundbank
getSoundbank
(
URL
url
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
Soundbank
getSoundbank
(
URL
url
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains a soundbank object from the <code>InputStream</code> provided.
* Obtains a soundbank object from the {@code InputStream} provided.
* @param stream <code>InputStream</code> representing the soundbank
*
* @param stream {@code InputStream} representing the soundbank
* @return soundbank object
* @return soundbank object
* @throws InvalidMidiDataException if the stream does not point to
* @throws InvalidMidiDataException if the stream does not point to
valid
*
valid
MIDI soundbank data recognized by this soundbank reader
*
MIDI soundbank data recognized by this soundbank reader
* @throws IOException if an I/O error occurs
* @throws IOException if an I/O error occurs
*/
*/
public
abstract
Soundbank
getSoundbank
(
InputStream
stream
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
Soundbank
getSoundbank
(
InputStream
stream
)
throws
InvalidMidiDataException
,
IOException
;
/**
/**
* Obtains a soundbank object from the <code>File</code> provided.
* Obtains a soundbank object from the {@code File} provided.
* @param file the <code>File</code> representing the soundbank
*
* @param file the {@code File} representing the soundbank
* @return soundbank object
* @return soundbank object
* @throws InvalidMidiDataException if the file does not point to
* @throws InvalidMidiDataException if the file does not point to
valid MIDI
*
valid MIDI
soundbank data recognized by this soundbank reader
*
soundbank data recognized by this soundbank reader
* @throws IOException if an I/O error occurs
* @throws IOException if an I/O error occurs
*/
*/
public
abstract
Soundbank
getSoundbank
(
File
file
)
throws
InvalidMidiDataException
,
IOException
;
public
abstract
Soundbank
getSoundbank
(
File
file
)
throws
InvalidMidiDataException
,
IOException
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录