com.github.zhangxd1989.basetool.convert.impl.CharsetConverter Maven / Gradle / Ivy
package com.github.zhangxd1989.basetool.convert.impl;
import com.github.zhangxd1989.basetool.convert.AbstractConverter;
import com.github.zhangxd1989.basetool.util.CharsetUtil;
import java.nio.charset.Charset;
/**
* 编码对象转换器
*
* @author sheldon
*/
public class CharsetConverter extends AbstractConverter {
@Override
protected Charset convertInternal(Object value) {
return CharsetUtil.charset(convertToStr(value));
}
}