|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.sound.sampled.spi.AudioFileWriter
public abstract class AudioFileWriter
Provider for audio file writing services. Classes providing concrete implementations can write one or more types of audio file from an audio stream.
Constructor Summary | |
---|---|
AudioFileWriter()
|
Method Summary | |
---|---|
abstract AudioFileFormat.Type[] |
getAudioFileTypes()
Obtains the file types for which file writing support is provided by this audio file writer. |
abstract AudioFileFormat.Type[] |
getAudioFileTypes(AudioInputStream stream)
Obtains the file types that this audio file writer can write from the audio input stream specified. |
boolean |
isFileTypeSupported(AudioFileFormat.Type fileType)
Indicates whether file writing support for the specified file type is provided by this audio file writer. |
boolean |
isFileTypeSupported(AudioFileFormat.Type fileType,
AudioInputStream stream)
Indicates whether an audio file of the type specified can be written from the audio input stream indicated. |
abstract int |
write(AudioInputStream stream,
AudioFileFormat.Type fileType,
File out)
Writes a stream of bytes representing an audio file of the file format indicated to the external file provided. |
abstract int |
write(AudioInputStream stream,
AudioFileFormat.Type fileType,
OutputStream out)
Writes a stream of bytes representing an audio file of the file type indicated to the output stream provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioFileWriter()
Method Detail |
---|
public abstract AudioFileFormat.Type[] getAudioFileTypes()
public boolean isFileTypeSupported(AudioFileFormat.Type fileType)
fileType
- the file type for which write capabilities are queried
true
if the file type is supported,
otherwise false
public abstract AudioFileFormat.Type[] getAudioFileTypes(AudioInputStream stream)
stream
- the audio input stream for which audio file type support
is queried
public boolean isFileTypeSupported(AudioFileFormat.Type fileType, AudioInputStream stream)
fileType
- file type for which write capabilities are queriedstream
- for which file writing support is queried
true
if the file type is supported for this audio input stream,
otherwise false
public abstract int write(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out) throws IOException
AudioSystem.NOT_SPECIFIED
.
stream
- the audio input stream containing audio data to be
written to the output streamfileType
- file type to be written to the output streamout
- stream to which the file data should be written
IOException
- if an I/O exception occurs
IllegalArgumentException
- if the file type is not supported by
the systemisFileTypeSupported(AudioFileFormat.Type, AudioInputStream)
,
getAudioFileTypes()
public abstract int write(AudioInputStream stream, AudioFileFormat.Type fileType, File out) throws IOException
stream
- the audio input stream containing audio data to be
written to the filefileType
- file type to be written to the fileout
- external file to which the file data should be written
IOException
- if an I/O exception occurs
IllegalArgumentException
- if the file format is not supported by
the systemisFileTypeSupported(javax.sound.sampled.AudioFileFormat.Type)
,
getAudioFileTypes()
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.