| Constructor and Description |
|---|
MidiFileWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract int[] |
getMidiFileTypes()
得到的MIDI文件类型的文件写作的作家提供文件支持。
|
abstract int[] |
getMidiFileTypes(Sequence sequence)
获取该文件写入的文件类型,可以从指定的序列中写入该文件类型。
|
boolean |
isFileTypeSupported(int fileType)
指示是否写指定的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文件字节表示提供的输出流。
|
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如果文件类型不支持该文件的作家
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如果文件类型不支持该文件的作家
isFileTypeSupported(int, Sequence),
getMidiFileTypes(Sequence)
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.