Top Description Fields Constructors Methods
org.apache.hc.client5.http.entity

public Class GZIPInputStreamFactory

extends Object
implements InputStreamFactory
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.entity.InputStreamFactory
Annotations
@Contract
threading:STATELESS
Imports
java.io.IOException, .InputStream, java.util.zip.GZIPInputStream, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior

InputStreamFactory for handling GZIPContent Coded responses.
Since
5.0

Field Summary

Modifier and TypeField and Description
private static final GZIPInputStreamFactory
INSTANCE

Singleton instance.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public InputStream
public static GZIPInputStreamFactory

Returns:

the singleton instance.
getInstance
()

Gets the singleton instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final GZIPInputStreamFactory INSTANCE

Singleton instance.

Constructor Detail

GZIPInputStreamFactoryback to summary
public GZIPInputStreamFactory()

Method Detail

createback to summary
public InputStream create(final InputStream inputStream) throws IOException

Implements org.apache.hc.client5.http.entity.InputStreamFactory.create.

Annotations
@Override
getInstanceback to summary
public static GZIPInputStreamFactory getInstance()

Gets the singleton instance.

Returns:GZIPInputStreamFactory

the singleton instance.