org.tritonus.share.sampled.file
Class THeaderlessAudioFileWriter

java.lang.Object
  extended by javax.sound.sampled.spi.AudioFileWriter
      extended by org.tritonus.share.sampled.file.TAudioFileWriter
          extended by org.tritonus.share.sampled.file.THeaderlessAudioFileWriter

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<AudioFileFormat.Type> fileTypes, Collection<AudioFormat> 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<AudioFileFormat.Type> fileTypes,
                                     Collection<AudioFormat> 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


Copyright © 2012. All Rights Reserved.