public final class TransferEncodingFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addEncodingFromHeader(MimeHeaders headers,
String headerName,
LinkedList<String> encoding)
Add encoding from the given MIME header.
|
static net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException> |
create(MimeHeaders headers,
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> consumer)
Instantiate a PartialAsyncConsumer with a ContentDecoder based on the Transfer-Encoding,
Content-Transfer-Encoding and Content-Encoding headers.
|
static String |
encodingAndTransferFromHeader(MimeHeaders headers,
String headerName,
LinkedList<String> encoding,
String defaultValue)
Add encoding from the given MIME header, remove and return any value which is a transfer.
|
public static net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException> create(MimeHeaders headers, net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> consumer) throws IOException
IOExceptionpublic static String encodingAndTransferFromHeader(MimeHeaders headers, String headerName, LinkedList<String> encoding, String defaultValue)
public static boolean addEncodingFromHeader(MimeHeaders headers, String headerName, LinkedList<String> encoding)
Copyright © 2020. All rights reserved.