Module methanol

Class GzipBodyDecoderFactory

  • All Implemented Interfaces:
    BodyDecoder.Factory

    public final class GzipBodyDecoderFactory
    extends java.lang.Object
    BodyDecoder.Factory for "gzip".
    • Constructor Summary

      Constructors 
      Constructor Description
      GzipBodyDecoderFactory()
      Creates a new GzipBodyDecoderFactory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> BodyDecoder<T> create​(java.net.http.HttpResponse.BodySubscriber<T> downstream)
      Creates a BodyDecoder with the given downstream.
      <T> BodyDecoder<T> create​(java.net.http.HttpResponse.BodySubscriber<T> downstream, java.util.concurrent.Executor executor)
      Creates a BodyDecoder with the given downstream and executor.
      java.lang.String encoding()
      Returns the encoding used by BodyDecoders created by this factory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GzipBodyDecoderFactory

        public GzipBodyDecoderFactory()
        Creates a new GzipBodyDecoderFactory. Meant to be called by ServiceLoader.
    • Method Detail

      • encoding

        public java.lang.String encoding()
        Description copied from interface: BodyDecoder.Factory
        Returns the encoding used by BodyDecoders created by this factory.
      • create

        public <T> BodyDecoder<T> create​(java.net.http.HttpResponse.BodySubscriber<T> downstream,
                                         java.util.concurrent.Executor executor)
        Description copied from interface: BodyDecoder.Factory
        Creates a BodyDecoder with the given downstream and executor.
        Specified by:
        create in interface BodyDecoder.Factory