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

org.solovyev.android.security.base64.ABase64StringEncoder Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.security.base64;

import android.util.Base64;
import org.solovyev.common.Converter;

import javax.annotation.Nonnull;

public class ABase64StringEncoder implements Converter {

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

	private ABase64StringEncoder() {
	}

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy