org.nutz.el.opt.custom.DoBase64 Maven / Gradle / Ivy
package org.nutz.el.opt.custom;
import java.util.List;
import org.nutz.el.opt.RunMethod;
import org.nutz.lang.Encoding;
import org.nutz.plugin.Plugin;
import org.nutz.repo.Base64;
/**
* 用法 ${base64('abc')} ${base64('decode', 'sfasdfsadfsa')} 若传入参数为null,则返回null
* @author wendal([email protected])
*
*/
public class DoBase64 implements RunMethod, Plugin {
public boolean canWork() {
return true;
}
public Object run(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy