org.solovyev.android.security.base64.ABase64StringEncoder Maven / Gradle / Ivy
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