/** * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. * * @param value * string to convert to Base64 form * @return Base64 string * * @throws EncoderException * thrown if a failure condition is encountered during the encoding process. */ public String encode(String value) throws EncoderException { if (value == null) { return null; } return encode(value, getDefaultCharset()); }
/** * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. * * @param value * string to convert to Base64 form * @return Base64 string * * @throws EncoderException * thrown if a failure condition is encountered during the encoding process. */ public String encode(String value) throws EncoderException { if (value == null) { return null; } return encode(value, getDefaultCharset()); }
/** * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. * * @param value * string to convert to Base64 form * @return Base64 string * * @throws EncoderException * thrown if a failure condition is encountered during the encoding process. */ public String encode(String value) throws EncoderException { if (value == null) { return null; } return encode(value, getDefaultCharset()); }
/** * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. * * @param value * string to convert to Base64 form * @return Base64 string * * @throws EncoderException * thrown if a failure condition is encountered during the encoding process. */ public String encode(String value) throws EncoderException { if (value == null) { return null; } return encode(value, getDefaultCharset()); }
/** * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. * * @param value * string to convert to Base64 form * @return Base64 string * * @throws EncoderException * thrown if a failure condition is encountered during the encoding process. */ public String encode(String value) throws EncoderException { if (value == null) { return null; } return encode(value, getDefaultCharset()); }
/** * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped. * * @param value * string to convert to Base64 form * @return Base64 string * * @throws EncoderException * thrown if a failure condition is encountered during the encoding process. */ public String encode(String value) throws EncoderException { if (value == null) { return null; } return encode(value, getDefaultCharset()); }