com.groovemanager.sampled.providers
Class WavSliceOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.groovemanager.sampled.providers.AudioFileOutputStream
          extended by com.groovemanager.sampled.providers.WavFileOutputStream
              extended by com.groovemanager.sampled.providers.WavSliceOutputStream
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
WAV909OutputStream

public class WavSliceOutputStream
extends WavFileOutputStream

This AudioFileOutputStream implementation supports writing of additional slice informations into a wave file.

Author:
Manu Robledo

Field Summary
protected  int[][] slices
          The slices to write if any
 
Fields inherited from class com.groovemanager.sampled.providers.AudioFileOutputStream
format, outputFile, properties, type
 
Constructor Summary
WavSliceOutputStream(java.io.File f, javax.sound.sampled.AudioFormat format, java.util.Map properties)
          Construct a new WavSliceOutputStream
 
Method Summary
 void close()
           
 
Methods inherited from class com.groovemanager.sampled.providers.WavFileOutputStream
addChunk, flush, write, write, write
 
Methods inherited from class com.groovemanager.sampled.providers.AudioFileOutputStream
getFormat, getOutputFile, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

slices

protected int[][] slices
The slices to write if any

Constructor Detail

WavSliceOutputStream

public WavSliceOutputStream(java.io.File f,
                            javax.sound.sampled.AudioFormat format,
                            java.util.Map properties)
                     throws java.io.IOException
Construct a new WavSliceOutputStream

Parameters:
f - The file to write to
format - The AudioFormat in which to write the audio data
properties - Map of properties to write to the file, if supported
Throws:
java.io.IOException - If an I/O Error occurs during OutputStream creation
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class WavFileOutputStream
Throws:
java.io.IOException
See Also:
Closeable.close()