spring-framework / org.springframework.beans.propertyeditors / CharsetEditor

CharsetEditor

open class CharsetEditor : PropertyEditorSupport

Editor for java.nio.charset.Charset, translating charset String representations into Charset objects and back.

Expects the same syntax as Charset's java.nio.charset.Charset#name(), e.g. UTF-8, ISO-8859-16, etc.

Author
Arjen Poutsma

Since
2.5.4

See Also
Charset

Constructors

<init>

CharsetEditor()

Editor for java.nio.charset.Charset, translating charset String representations into Charset objects and back.

Expects the same syntax as Charset's java.nio.charset.Charset#name(), e.g. UTF-8, ISO-8859-16, etc.

Functions

getAsText

open fun getAsText(): String

setAsText

open fun setAsText(text: String): Unit