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, supportsCustomEditor
public 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 PropertyEditor
setAsText
in class PropertyEditorSupport
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport