mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Revert "增加ContentType新的构建方法"
This commit is contained in:
parent
0d653aaa5e
commit
da086a1be0
@ -141,15 +141,4 @@ public enum ContentType {
|
|||||||
public static String build(String contentType, Charset charset) {
|
public static String build(String contentType, Charset charset) {
|
||||||
return StrUtil.format("{};charset={}", contentType, charset.name());
|
return StrUtil.format("{};charset={}", contentType, charset.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 输出Content-Type字符串,附带编码信息
|
|
||||||
*
|
|
||||||
* @param contentType Content-Type 枚举类型
|
|
||||||
* @param charset 编码
|
|
||||||
* @return Content-Type字符串
|
|
||||||
*/
|
|
||||||
public static String build(ContentType contentType, Charset charset) {
|
|
||||||
this.build(contentType.getValue(),charset);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user