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 GzipCompressorINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateGzipCompressor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStreamcompress(java.io.OutputStream outputStream)Wrap theoutputStreamwith a compressing output stream.java.lang.StringgetEncoding()The name of the compressor encoding.static GzipCompressorgetInstance()
-
-
-
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:CompressorThe name of the compressor encoding.Used to identify the compressor during configuration and to populate the
Content-Encodingheader.- Specified by:
getEncodingin interfaceCompressor
-
compress
public java.io.OutputStream compress(java.io.OutputStream outputStream) throws java.io.IOExceptionDescription copied from interface:CompressorWrap theoutputStreamwith a compressing output stream.- Specified by:
compressin interfaceCompressor- Throws:
java.io.IOException
-
-