public class CharsetEditor
extends java.beans.PropertyEditorSupport
java.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.
Charset
Constructor and Description |
---|
CharsetEditor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText() |
void |
setAsText(java.lang.String text) |
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport