public final class ContentDecoderFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ContentDecoder |
createDecoder(ContentDecoder next,
MimeMessage mime)
Create a ContentDecoder for the Content-Encoding or Content-Transfer-Encoding field of the given MIME.
|
static ContentDecoder |
createDecoder(ContentDecoder next,
String encoding)
Create a ContentDecoder for the given Content-Encoding.
|
static ContentDecoder |
createDecoder(net.lecousin.framework.io.IO.Writable out,
MimeMessage mime)
Create a ContentDecoder for the Content-Encoding or Content-Transfer-Encoding field of the given MIME.
|
static List<String> |
getSupportedEncoding()
Return the list of registered encoding.
|
static void |
registerDecoder(String encoding,
Class<? extends ContentDecoder> decoderClass)
Register a ContentDecoder for a given Content-Encoding value.
|
public static void registerDecoder(String encoding, Class<? extends ContentDecoder> decoderClass) throws NoSuchMethodException
NoSuchMethodExceptionpublic static List<String> getSupportedEncoding()
public static ContentDecoder createDecoder(ContentDecoder next, String encoding)
public static ContentDecoder createDecoder(net.lecousin.framework.io.IO.Writable out, MimeMessage mime)
public static ContentDecoder createDecoder(ContentDecoder next, MimeMessage mime)
Copyright © 2018. All rights reserved.