Class FileMultiplexer
java.lang.Object
org.monte.media.imgseq.FileMultiplexer
- All Implemented Interfaces:
Closeable,AutoCloseable,Multiplexer
Multiplexes samples into individual files.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileMultiplexer
-
-
Method Details
-
addTrack
Description copied from interface:MultiplexerAdds a track.- Specified by:
addTrackin interfaceMultiplexer- Parameters:
fmt- The format of the track.- Returns:
- The track number.
- Throws:
IOException
-
write
Description copied from interface:MultiplexerWrites a sample. Does nothing if the discard-flag or the prefetch-flag in the buffer is set to true.- Specified by:
writein interfaceMultiplexer- Parameters:
track- The track number.buf- The buffer containing the sample data.- Throws:
IOException- if the write fails
-
close
Description copied from interface:MultiplexerCloses the Multiplexer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceMultiplexer- Throws:
IOException- if close fails
-