Class GZipCompressionFilter
java.lang.Object
kieker.monitoring.writer.compression.GZipCompressionFilter
- All Implemented Interfaces:
ICompressionFilter
public class GZipCompressionFilter extends java.lang.Object implements ICompressionFilter
Gzip compression filter for the writer pool.
- Since:
- 1.14
- Author:
- Reiner Jung
-
Constructor Summary
Constructors Constructor Description GZipCompressionFilter(Configuration configuration)
Initialize GZipCompression with parameter to adhere Kieker configuration system. -
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.
-
Constructor Details
-
GZipCompressionFilter
Initialize GZipCompression with parameter to adhere Kieker configuration system.- Parameters:
configuration
- Kieker configuration object
-
-
Method Details
-
chainOutputStream
public java.io.OutputStream chainOutputStream(java.io.OutputStream outputStream, java.nio.file.Path fileName) throws java.io.IOExceptionDescription copied from interface:ICompressionFilter
Create an output stream with compression support and use the normal output stream as source.- Specified by:
chainOutputStream
in interfaceICompressionFilter
- Parameters:
outputStream
- uncompressed output streamfileName
- 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
-
getExtension
public java.lang.String getExtension()Description copied from interface:ICompressionFilter
Return the extension with leading dot.- Specified by:
getExtension
in interfaceICompressionFilter
- Returns:
- return the extension
-