mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -54,7 +54,7 @@ public class FreemarkerTemplate implements Template, Serializable{
|
||||
|
||||
@Override
|
||||
public void render(final Map<?, ?> bindingMap, final OutputStream out) {
|
||||
render(bindingMap, IoUtil.getWriter(out, Charset.forName(this.rawTemplate.getEncoding())));
|
||||
render(bindingMap, IoUtil.toWriter(out, Charset.forName(this.rawTemplate.getEncoding())));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -63,7 +63,7 @@ public class ThymeleafTemplate implements Template, Serializable {
|
||||
|
||||
@Override
|
||||
public void render(final Map<?, ?> bindingMap, final OutputStream out) {
|
||||
render(bindingMap, IoUtil.getWriter(out, this.charset));
|
||||
render(bindingMap, IoUtil.toWriter(out, this.charset));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ public class VelocityTemplate implements Template, Serializable {
|
||||
if(null == charset) {
|
||||
loadEncoding();
|
||||
}
|
||||
render(bindingMap, IoUtil.getWriter(out, CharsetUtil.charset(this.charset)));
|
||||
render(bindingMap, IoUtil.toWriter(out, CharsetUtil.charset(this.charset)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user