code: protected IEncoder getAppliedEncoder(DataUrlEncoding encoding) {
          switch (encoding) {
              case BASE64:
                  return base64Encoder;
              case URL:
                  return urlEncodedEncoder;
          }
          throw new IllegalArgumentException();
      }
docs: Get the matching encoder for the given encoding
  @param encoding Encoding
  @return Matching encoder