org.tritonus.share.sampled.file
Class THeaderlessAudioFileWriter

java.lang.Object
  extended byjavax.sound.sampled.spi.AudioFileWriter
      extended byorg.tritonus.share.sampled.file.TAudioFileWriter
          extended byorg.tritonus.share.sampled.file.THeaderlessAudioFileWriter
Direct Known Subclasses:
GSMAudioFileWriter, MpegAudioFileWriter, VorbisAudioFileWriter

public class THeaderlessAudioFileWriter
extends TAudioFileWriter

Base class for formats without extra header. This AudioFileWriter is typically used for compressed formats where the encoder puts a header into the encoded stream. In this case, the AudioFileWriter needs not to add a header. This is why THeaderlessAudioOutputStream is used here.

Author:
Florian Bomers, Matthias Pfisterer

Field Summary
 
Fields inherited from class org.tritonus.share.sampled.file.TAudioFileWriter
ALL, NULL_TYPE_ARRAY, PCM_SIGNED, PCM_UNSIGNED
 
Constructor Summary
protected THeaderlessAudioFileWriter(Collection fileTypes, Collection audioFormats)
           
 
Method Summary
protected  AudioOutputStream getAudioOutputStream(AudioFormat audioFormat, long lLengthInBytes, AudioFileFormat.Type fileType, TDataOutputStream dataOutputStream)
           
 
Methods inherited from class org.tritonus.share.sampled.file.TAudioFileWriter
getAudioFileTypes, getAudioFileTypes, getSupportedAudioFormats, isAudioFormatSupportedImpl, isFileTypeSupported, isFileTypeSupported, write, write, writeImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

THeaderlessAudioFileWriter

protected THeaderlessAudioFileWriter(Collection fileTypes,
                                     Collection audioFormats)
Method Detail

getAudioOutputStream

protected AudioOutputStream getAudioOutputStream(AudioFormat audioFormat,
                                                 long lLengthInBytes,
                                                 AudioFileFormat.Type fileType,
                                                 TDataOutputStream dataOutputStream)
                                          throws IOException
Specified by:
getAudioOutputStream in class TAudioFileWriter
Throws:
IOException