Class GzipCompressor
- java.lang.Object
-
- io.opentelemetry.exporter.internal.compression.GzipCompressor
-
- All Implemented Interfaces:
Compressor
public final class GzipCompressor extends java.lang.Object implements Compressor
GzipCompressor
.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description private static GzipCompressor
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
GzipCompressor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
compress(java.io.OutputStream outputStream)
Wrap theoutputStream
with a compressing output stream.java.lang.String
getEncoding()
The name of the compressor encoding.static GzipCompressor
getInstance()
-
-
-
Field Detail
-
INSTANCE
private static final GzipCompressor INSTANCE
-
-
Method Detail
-
getInstance
public static GzipCompressor getInstance()
-
getEncoding
public java.lang.String 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
public java.io.OutputStream compress(java.io.OutputStream outputStream) throws java.io.IOException
Description copied from interface:Compressor
Wrap theoutputStream
with a compressing output stream.- Specified by:
compress
in interfaceCompressor
- Throws:
java.io.IOException
-
-