类 CharsetEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.CharsetEditor
- 所有已实现的接口:
PropertyEditor
public class CharsetEditor extends PropertyEditorSupport
Editor forjava.nio.charset.Charset
, translating charset String representations into Charset objects and back.Expects the same syntax as Charset's
Charset.name()
, e.g.UTF-8
,ISO-8859-16
, etc.- 从以下版本开始:
- 2.5.4
- 作者:
- Arjen Poutsma
- 另请参阅:
Charset
构造器概要
构造器 构造器 说明 CharsetEditor()
构造器详细资料
CharsetEditor
public CharsetEditor()
方法详细资料
setAsText
public void setAsText(String text) throws IllegalArgumentException
- 指定者:
setAsText
在接口中PropertyEditor
- 覆盖:
setAsText
在类中PropertyEditorSupport
- 抛出:
IllegalArgumentException
getAsText
public String getAsText()
- 指定者:
getAsText
在接口中PropertyEditor
- 覆盖:
getAsText
在类中PropertyEditorSupport