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

com.groupbyinc.common.jackson.jq.internal.functions.AtBase64Function Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
package net.thisptr.jackson.jq.internal.functions;

import java.util.Base64;

import net.thisptr.jackson.jq.exception.JsonQueryException;
import net.thisptr.jackson.jq.internal.BuiltinFunction;

@BuiltinFunction("@base64/0")
public class AtBase64Function extends AbstractAtFormattingFunction {
	@Override
	public String convert(final String text) throws JsonQueryException {
		return Base64.getEncoder().encodeToString(text.getBytes());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy