|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.support.PropertiesConverter
public final class PropertiesConverter
Utility to convert a Properties object to a String and back. Ideally this utility should have been used to convert to
string in order to convert that string back to a Properties Object. Attempting to convert a string obtained by
calling Properties.toString() will return an invalid Properties object. The format of Properties is that used by
PropertiesPersister
from the Spring Core, so a String in the correct format for a Spring property editor is
fine (key=value pairs separated by new lines).
PropertiesPersister
Method Summary | |
---|---|
static String |
propertiesToString(Properties propertiesToParse)
Convert Properties object to String. |
static Properties |
stringToProperties(String stringToParse)
Parse a String to a Properties object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Properties stringToProperties(String stringToParse)
stringToParse
- String to parse.
PropertiesPersister
public static String propertiesToString(Properties propertiesToParse)
propertiesToParse
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |