Interface ICompressionFilter

All Known Implementing Classes:
BZip2CompressionFilter, DeflateCompressionFilter, GZipCompressionFilter, NoneCompressionFilter, XZCompressionFilter, ZipCompressionFilter

public interface ICompressionFilter
Common interface for compression filter used in the binary writer.
Since:
1.14
Author:
Reiner Jung
  • Method Summary

    Modifier and Type Method Description
    java.io.OutputStream chainOutputStream​(java.io.OutputStream outputStream, java.nio.file.Path fileName)
    Create an output stream with compression support and use the normal output stream as source.
    java.lang.String getExtension()
    Return the extension with leading dot.
  • Method Details

    • chainOutputStream

      java.io.OutputStream chainOutputStream​(java.io.OutputStream outputStream, java.nio.file.Path fileName) throws java.io.IOException
      Create an output stream with compression support and use the normal output stream as source.
      Parameters:
      outputStream - uncompressed output stream
      fileName - file name used in compression system, which also use an internal directory structure.
      Returns:
      the compression output stream
      Throws:
      java.io.IOException - on file or stream errors
      Since:
      1.14
    • getExtension

      java.lang.String getExtension()
      Return the extension with leading dot.
      Returns:
      return the extension
      Since:
      1.14