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