public class StringMultipartFileEditor extends 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(String charsetName)
Create a new
StringMultipartFileEditor, using the given charset. |
| Modifier and Type | Method and Description |
|---|---|
void |
setAsText(String text) |
void |
setValue(Object value) |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorpublic StringMultipartFileEditor()
StringMultipartFileEditor, using the default charset.public StringMultipartFileEditor(String charsetName)
StringMultipartFileEditor, using the given charset.charsetName - valid charset nameString.String(byte[],String)public void setAsText(String text)
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportpublic void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupport