public class PropertiesEditor extends PropertyEditorSupport
PropertyEditor for Properties objects.
Handles conversion from content String to Properties object.
Also handles Map to Properties conversion, for populating
a Properties object via XML "map" entries.
The required format is defined in the standard Properties
documentation. Each property must be on a new line.
Properties.load(java.io.Reader)| 构造器和说明 |
|---|
PropertiesEditor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setAsText(String text)
Convert
String into Properties, considering it as
properties content. |
void |
setValue(Object value)
|
public void setAsText(@Nullable
String text)
throws IllegalArgumentException
String into Properties, considering it as
properties content.setAsText 在接口中 PropertyEditorsetAsText 在类中 PropertyEditorSupporttext - the text to be so convertedIllegalArgumentExceptionpublic void setValue(Object value)
setValue 在接口中 PropertyEditorsetValue 在类中 PropertyEditorSupport