org.apache.hc.client5.http.entity

## Class GZIPInputStreamFactory

- java.lang.Object
- - org.apache.hc.client5.http.entity.GZIPInputStreamFactory

- All Implemented Interfaces:
    InputStreamFactory

      @Contract(threading=STATELESS)
      public class GZIPInputStreamFactory
      extends Object
      implements InputStreamFactory

  `InputStreamFactory` for handling GZIPContent Coded responses.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GZIPInputStreamFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `create(InputStream inputStream)`
    `static GZIPInputStreamFactory` | `getInstance()` Gets the singleton instance.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GZIPInputStreamFactory

          public GZIPInputStreamFactory()

  - ### Method Detail

    - #### getInstance

          public static GZIPInputStreamFactory getInstance()

      Gets the singleton instance.
      Returns:
        the singleton instance.

    - #### create

          public InputStream create(InputStream inputStream)
                             throws IOException

      Specified by:
        `create` in interface `InputStreamFactory`
      Throws:
        `IOException`

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.