| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private AudioFileFormat | getAudioFileFormat(AudioFileFormat.
Returns the AudioFileFormat describing the file that will be written from this AudioInputStream. |
| public AudioFileFormat. | getAudioFileTypes(AudioInputStream stream)
Implements abstract javax. Obtains the file types that this audio file writer can write from the audio input stream specified. |
| private InputStream | |
| public int | write(AudioInputStream stream, AudioFileFormat.
Implements abstract javax. Writes a stream of bytes representing an audio file of the file type indicated to the output stream provided. |
| public int | write(AudioInputStream stream, AudioFileFormat.
Implements abstract javax. Writes a stream of bytes representing an audio file of the file format indicated to the external file provided. |
| private int |
| WaveFileWriter | back to summary |
|---|---|
| public WaveFileWriter() Constructs a new WaveFileWriter object. | |
| getAudioFileFormat | back to summary |
|---|---|
| private AudioFileFormat getAudioFileFormat(AudioFileFormat. Returns the AudioFileFormat describing the file that will be written from this AudioInputStream. Throws IllegalArgumentException if not supported. | |
| getAudioFileTypes | back to summary |
|---|---|
| public AudioFileFormat. Implements abstract javax. Doc from javax. Obtains the file types that this audio file writer can write from the audio input stream specified.
| |
| getFileStream | back to summary |
|---|---|
| private InputStream getFileStream(WaveFileFormat waveFileFormat, InputStream audioStream) throws IOException | |
| write | back to summary |
|---|---|
| public int write(AudioInputStream stream, AudioFileFormat. Implements abstract javax. Doc from javax. 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
| |
| write | back to summary |
|---|---|
| public int write(AudioInputStream stream, AudioFileFormat. Implements abstract javax. Doc from javax. Writes a stream of bytes representing an audio file of the file format indicated to the external file provided.
| |
| writeWaveFile | back to summary |
|---|---|
| private int writeWaveFile(InputStream in, WaveFileFormat waveFileFormat, OutputStream out) throws IOException | |