public final class ContentDecoderFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> |
createDecoder(net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> consumer,
MimeHeaders headers)
Create a ContentDecoder for the Content-Encoding or Content-Transfer-Encoding field of the given MIME.
|
static net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> |
createDecoder(net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> next,
String encoding)
Create a ContentDecoder for the given Content-Encoding.
|
static List<String> |
getSupportedEncoding()
Return the list of registered encoding.
|
static void |
registerDecoder(String encoding,
UnaryOperator<net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>> decoderSupplier)
Register a ContentDecoder for a given Content-Encoding value.
|
public static void registerDecoder(String encoding, UnaryOperator<net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>> decoderSupplier)
public static List<String> getSupportedEncoding()
public static net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> createDecoder(net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> next, String encoding)
public static net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> createDecoder(net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> consumer, MimeHeaders headers)
Copyright © 2020. All rights reserved.