All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.robotmedia.billing.utils.BillingBase64StringEncoder Maven / Gradle / Ivy

package net.robotmedia.billing.utils;

import org.solovyev.common.Converter;

import javax.annotation.Nonnull;

/**
 * User: serso
 * Date: 2/9/13
 * Time: 7:22 PM
 */
public class BillingBase64StringEncoder implements Converter {

	@Nonnull
	private static Converter instance = new BillingBase64StringEncoder();

	private BillingBase64StringEncoder() {
	}

	@Nonnull
	public static Converter getInstance() {
		return instance;
	}

	@Nonnull
	@Override
	public String convert(@Nonnull byte[] bytes) {
		return Base64.encode(bytes);
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy