java.lang.Object | ||
↳ | javax.sound.sampled.spi.AudioFileWriter | |
↳ | com.sun.media.sound.AiffFileWriter |
AIFF file writer.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | bisBufferSize | ||||||||||
int | bufferSize |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new AiffFileWriter object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains the file types for which file writing support is provided by this
audio file writer.
| |||||||||||
Obtains the file types that this audio file writer can write from the
audio input stream specified.
| |||||||||||
Writes a stream of bytes representing an audio file of the file type
indicated to the output stream provided.
| |||||||||||
Writes a stream of bytes representing an audio file of the file format
indicated to the external file provided.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
big2little
Protected helper method to swap the order of bytes in a 32 bit int
| |||||||||||
big2little
Protected helper method to swap the order of bytes in a 16 bit short
| |||||||||||
rllong
Protected helper method to read 64 bits and changing the order of
each bytes.
| |||||||||||
rlshort
Protected helper method to read 16 bits value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new AiffFileWriter object.
Obtains the file types for which file writing support is provided by this audio file writer.
Obtains the file types that this audio file writer can write from the audio input stream specified.
stream | the audio input stream for which audio file type support is queried |
---|
Writes a stream of bytes representing an audio file of the file type
indicated to the output stream provided. Some file types require that
the length be written into the file header, and cannot be written from
start to finish unless the length is known in advance. An attempt
to write such a file type will fail with an IOException if the length in
the audio file format is
AudioSystem.NOT_SPECIFIED
.
stream | the audio input stream containing audio data to be written to the output stream |
---|---|
fileType | file type to be written to the output stream |
out | stream to which the file data should be written |
IOException |
---|
Writes a stream of bytes representing an audio file of the file format indicated to the external file provided.
stream | the audio input stream containing audio data to be written to the file |
---|---|
fileType | file type to be written to the file |
out | external file to which the file data should be written |
IOException |
---|
big2little Protected helper method to swap the order of bytes in a 32 bit int
big2little Protected helper method to swap the order of bytes in a 16 bit short
rllong Protected helper method to read 64 bits and changing the order of each bytes.
IOException |
---|
rlshort Protected helper method to read 16 bits value. Swap high with low byte.
IOException |
---|