Class GzipCompressor
java.lang.Object
io.opentelemetry.exporter.internal.compression.GzipCompressor
- All Implemented Interfaces:
Compressor
Gzip
Compressor
.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompress
(OutputStream outputStream) Wrap theoutputStream
with a compressing output stream.The name of the compressor encoding.static GzipCompressor
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
GzipCompressor
private GzipCompressor()
-
-
Method Details
-
getInstance
-
getEncoding
Description copied from interface:Compressor
The name of the compressor encoding.Used to identify the compressor during configuration and to populate the
Content-Encoding
header.- Specified by:
getEncoding
in interfaceCompressor
-
compress
Description copied from interface:Compressor
Wrap theoutputStream
with a compressing output stream.- Specified by:
compress
in interfaceCompressor
- Throws:
IOException
-