org.tritonus.sampled.file
Class AuAudioFileReader

java.lang.Object
  extended byjavax.sound.sampled.spi.AudioFileReader
      extended byorg.tritonus.share.sampled.file.TAudioFileReader
          extended byorg.tritonus.sampled.file.AuAudioFileReader

public class AuAudioFileReader
extends TAudioFileReader

Class for reading Sun/Next AU files.

Author:
Florian Bomers, Matthias Pfisterer

Constructor Summary
AuAudioFileReader()
           
 
Method Summary
protected  AudioFileFormat getAudioFileFormat(InputStream inputStream, long lFileSizeInBytes)
          Get an AudioFileFormat (internal implementation).
 
Methods inherited from class org.tritonus.share.sampled.file.TAudioFileReader
calculateFrameSize, getAudioFileFormat, getAudioFileFormat, getAudioFileFormat, getAudioInputStream, getAudioInputStream, getAudioInputStream, getAudioInputStream, readIeeeExtended, readLittleEndianInt, readLittleEndianShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuAudioFileReader

public AuAudioFileReader()
Method Detail

getAudioFileFormat

protected AudioFileFormat getAudioFileFormat(InputStream inputStream,
                                             long lFileSizeInBytes)
                                      throws UnsupportedAudioFileException,
                                             IOException
Description copied from class: TAudioFileReader
Get an AudioFileFormat (internal implementation). Subclasses must implement this method in a way specific to the file format they handle. Note that depending on the implementation of this method, you should or should not override getAudioInputStream(InputStream, long), too (see comment there).

Specified by:
getAudioFileFormat in class TAudioFileReader
Parameters:
inputStream - The InputStream to read from.
lFileSizeInBytes - The size of the originating file, if known. If it isn't known, AudioSystem.NOT_SPECIFIED should be passed. This value may be used for byteLength in AudioFileFormat, if this value can't be derived from the informmation in the file header.
Returns:
an AudioFileFormat instance containing information from the header of the stream passed in as inputStream.
Throws:
UnsupportedAudioFileException
IOException