public class StringMultipartFileEditor
extends java.beans.PropertyEditorSupport
PropertyEditor
for converting
MultipartFiles
to Strings.
Allows one to specify the charset to use.
Constructor and Description |
---|
StringMultipartFileEditor()
Create a new
StringMultipartFileEditor , using the default charset. |
StringMultipartFileEditor(java.lang.String charsetName)
Create a new
StringMultipartFileEditor , using the given charset. |
Modifier and Type | Method and Description |
---|---|
void |
setAsText(java.lang.String text) |
void |
setValue(java.lang.Object value) |
public StringMultipartFileEditor()
StringMultipartFileEditor
, using the default charset.public StringMultipartFileEditor(java.lang.String charsetName)
StringMultipartFileEditor
, using the given charset.charsetName
- valid charset nameString.String(byte[],String)
public void setAsText(java.lang.String text)
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport