|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.sound.sampled.spi.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)
stream
- 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()
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.