![JAR search and dependency download from the Maven repository](/logo.png)
com.github.ddth.queue.jclient.utils.QueueClientUtils Maven / Gradle / Ivy
package com.github.ddth.queue.jclient.utils;
import org.apache.commons.codec.binary.Base64;
/**
* Utility class.
*
* @author Thanh Nguyen
* @since 0.1.0
*/
public class QueueClientUtils {
public static byte[] base64Decode(String encodedStr) {
return encodedStr != null ? Base64.decodeBase64(encodedStr) : null;
}
public static String base64Encode(byte[] data) {
return data != null ? Base64.encodeBase64String(data) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy