Package net.lenni0451.commons.httpclient
Interface HttpResponse.DecoderProvider
-
- Enclosing class:
- HttpResponse
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface HttpResponse.DecoderProviderA provider for decoders based on the encoding name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpResponse.InputStreamMapperget(java.lang.String encoding)Get a decoder for the given encoding name.
All names will be converted to lower case before lookup.
-
-
-
Method Detail
-
get
@Nullable HttpResponse.InputStreamMapper get(java.lang.String encoding)
Get a decoder for the given encoding name.
All names will be converted to lower case before lookup.- Parameters:
encoding- The encoding name- Returns:
- The decoder, or null if the encoding is not supported
-
-