- java.lang.Object
-
- com.github.mizosoft.methanol.internal.decoder.GzipBodyDecoderFactory
-
- All Implemented Interfaces:
BodyDecoder.Factory
public final class GzipBodyDecoderFactory extends java.lang.ObjectBodyDecoder.Factoryfor "gzip".
-
-
Constructor Summary
Constructors Constructor Description GzipBodyDecoderFactory()Creates a newGzipBodyDecoderFactory.
-
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 aBodyDecoderwith the given downstream.<T> BodyDecoder<T>create(java.net.http.HttpResponse.BodySubscriber<T> downstream, java.util.concurrent.Executor executor)Creates aBodyDecoderwith the given downstream and executor.java.lang.Stringencoding()Returns the encoding used byBodyDecoderscreated by this factory.
-
-
-
Method Detail
-
encoding
public java.lang.String encoding()
Description copied from interface:BodyDecoder.FactoryReturns the encoding used byBodyDecoderscreated by this factory.
-
create
public <T> BodyDecoder<T> create(java.net.http.HttpResponse.BodySubscriber<T> downstream)
Description copied from interface:BodyDecoder.FactoryCreates aBodyDecoderwith the given downstream.- Specified by:
createin interfaceBodyDecoder.Factory
-
create
public <T> BodyDecoder<T> create(java.net.http.HttpResponse.BodySubscriber<T> downstream, java.util.concurrent.Executor executor)
Description copied from interface:BodyDecoder.FactoryCreates aBodyDecoderwith the given downstream and executor.- Specified by:
createin interfaceBodyDecoder.Factory
-
-