Class LZFFileOutputStream

java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
com.ning.compress.lzf.util.LZFFileOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, Channel, WritableByteChannel

public class LZFFileOutputStream extends FileOutputStream implements WritableByteChannel
Helper class that allows use of LZF compression even if a library requires use of FileOutputStream.

Note that use of this class is not recommended unless you absolutely must use a FileOutputStream instance; otherwise basic LZFOutputStream (which uses aggregation for underlying streams) is more appropriate

Implementation note: much of the code is just copied from LZFOutputStream, so care must be taken to keep implementations in sync if there are fixes.