java.beans.PropertyEditor for converting
MultipartFiles to Strings.
Allows one to specify the charset to use.
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StringMultipartFileEditor(String
valid charset name charsetName)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | setAsText(String
The string to be parsed. text)Overrides java. Implements java. Sets the property value by parsing a given String. |
| public void | setValue(Object
The new target object to be edited. Note that this
object should not be modified by the PropertyEditor, rather
the PropertyEditor should create a new object to hold any
modified value. value)Overrides java. Implements java. Set (or change) the object that is to be edited. |
| charsetName | back to summary |
|---|---|
| private final String charsetName
| |
| StringMultipartFileEditor | back to summary |
|---|---|
| public StringMultipartFileEditor() Create a new | |
| StringMultipartFileEditor | back to summary |
|---|---|
| public StringMultipartFileEditor(String charsetName) Create a new
| |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) Overrides java. Implements java. Doc from java. Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text. | |
| setValue | back to summary |
|---|---|
| public void setValue(Object value) Overrides java. Implements java. Doc from java. Set (or change) the object that is to be edited. | |