| Modifier and Type | Field and Description |
|---|---|
| private static final int | UNKNOWN_SIZE
Value for length field if length is not known. |
| 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 |
| UNKNOWN_SIZE | back to summary |
|---|---|
| private static final int UNKNOWN_SIZE Value for length field if length is not known. | |
| AuFileWriter | back to summary |
|---|---|
| public AuFileWriter() Constructs a new AuFileWriter 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(AuFileFormat auFileFormat, AudioInputStream 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.
| |
| writeAuFile | back to summary |
|---|---|
| private int writeAuFile(AudioInputStream in, AuFileFormat auFileFormat, OutputStream out) throws IOException | |