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.DecoderProvider
    A provider for decoders based on the encoding name.
    • 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