/**
* Indicates whether an audio file of the type specified can be written from
* the audio input stream indicated.
*
* @param fileType file type for which write capabilities are queried
* @param stream for which file writing support is queried
* @return {@code true} if the file type is supported for this audio input
* stream, otherwise {@code false}
* @throws NullPointerException if {@code fileType} or {@code stream} are
* {@code null}
*/
public boolean isFileTypeSupported(Type fileType, AudioInputStream stream) {
Objects.requireNonNull(fileType);
Type types[] = getAudioFileTypes( stream );
for(int i=0; i<types.length; i++) {
if( fileType.equals( types[i] ) ) {
return true;
}
}
return false;
}
AudioFileWriter.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录