APIdia Launch Partner
Top Description Constructors Methods
com.sun.media.sound

public final Class WaveFileReader

extends SunFileReader
Class Inheritance
Imports
java.io.DataInputStream, .EOFException, .IOException, .InputStream, javax.sound.sampled.AudioFileFormat, .AudioFormat, .AudioSystem, .UnsupportedAudioFileException

WAVE file reader.
Authors
Kara Kytle, Jan Borgersen, Florian Bomers

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv StandardFileFormat
getAudioFileFormatImpl(final InputStream stream)

Implements abstract com.sun.media.sound.SunFileReader.getAudioFileFormatImpl.

Obtains the audio file format of the input stream provided.

Inherited from com.sun.media.sound.SunFileReader:
big2littlebig2littleShortcalculatePCMFrameSizegetAudioFileFormatgetAudioFileFormatgetAudioFileFormatgetAudioInputStreamgetAudioInputStreamgetAudioInputStreamrllongrlshort

Constructor Detail

WaveFileReaderback to summary
public WaveFileReader()

Method Detail

getAudioFileFormatImplback to summary
pack-priv StandardFileFormat getAudioFileFormatImpl(final InputStream stream) throws UnsupportedAudioFileException, IOException

Implements abstract com.sun.media.sound.SunFileReader.getAudioFileFormatImpl.

Doc from com.sun.media.sound.SunFileReader.getAudioFileFormatImpl.

Obtains the audio file format of the input stream provided. The stream must point to valid audio file data. Note that default implementation of getAudioInputStream(InputStream) assume that this method leaves the input stream at the beginning of the audio data.

Annotations
@Override
Exceptions
UnsupportedAudioFileException:
if the stream does not point to valid audio file data recognized by the system
IOException:
if an I/O exception occurs