matrix.business.pay.converter.HtmlConvert Maven / Gradle / Ivy
package matrix.business.pay.converter;
/**
* html信息转换器
* @author wangcheng
*/
public class HtmlConvert {
public static final StringBuilder HTML = new StringBuilder();
static {
HTML.append("");
HTML.append("");
HTML.append("");
HTML.append("");
HTML.append("%s");
HTML.append("");
}
/**
* body转换
* @param body body体
* @return html
*/
public static String bodyConvert(String body) {
return String.format(HTML.toString(), body);
}
/**
* 图片转换
* @param image 图片地址
* @return 带图片的html
*/
public static String imageConvert(String image) {
return String.format(HTML.toString(), "");
}
}