Class FileMultiplexer

java.lang.Object
org.monte.media.imgseq.FileMultiplexer
All Implemented Interfaces:
Multiplexer

public class FileMultiplexer extends Object implements Multiplexer
Multiplexes samples into individual files.
Author:
Werner Randelshofer
  • Constructor Details

    • FileMultiplexer

      public FileMultiplexer(File dir, String baseName, String extension)
  • Method Details

    • write

      public void write(int track, Buffer buf) throws IOException
      Description copied from interface: Multiplexer
      Writes a sample. Does nothing if the discard-flag or the prefetch-flag in the buffer is set to true.
      Specified by:
      write in interface Multiplexer
      Parameters:
      track - The track number.
      buf - The buffer containing the sample data.
      Throws:
      IOException - if the write fails
    • close

      public void close() throws IOException
      Description copied from interface: Multiplexer
      Closes the Multiplexer.
      Specified by:
      close in interface Multiplexer
      Throws:
      IOException - if close fails