Module methanol
Class DeflateBodyDecoderFactory
java.lang.Object
com.github.mizosoft.methanol.internal.decoder.DeflateBodyDecoderFactory
- All Implemented Interfaces:
BodyDecoder.Factory
BodyDecoder.Factory
for "deflate".-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> BodyDecoder
<T> create
(HttpResponse.BodySubscriber<T> downstream) Creates and returns aBodyDecoder
with the given downstream.<T> BodyDecoder
<T> create
(HttpResponse.BodySubscriber<T> downstream, Executor executor) Creates and returns aBodyDecoder
with the given downstream and executor.encoding()
Returns the encoding used byBodyDecoders
created by this factory.
-
Constructor Details
-
DeflateBodyDecoderFactory
public DeflateBodyDecoderFactory()Creates a newDeflateBodyDecoderFactory
. Meant to be called byServiceLoader
.
-
-
Method Details
-
encoding
Description copied from interface:BodyDecoder.Factory
Returns the encoding used byBodyDecoders
created by this factory. -
create
Description copied from interface:BodyDecoder.Factory
Creates and returns aBodyDecoder
with the given downstream.- Specified by:
create
in interfaceBodyDecoder.Factory
- Type Parameters:
T
- the body type- Parameters:
downstream
- the downstream subscriber
-
create
Description copied from interface:BodyDecoder.Factory
Creates and returns aBodyDecoder
with the given downstream and executor.- Specified by:
create
in interfaceBodyDecoder.Factory
- Type Parameters:
T
- the body type- Parameters:
downstream
- the downstream subscriberexecutor
- the decoder's executor
-