Package jodd.props
Class PropsConverter
java.lang.Object
jodd.props.PropsConverter
Converter of Java Properties to Jodd Props format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconvert(Writer writer, Properties properties) Convert Java Properties to Jodd Props format.static voidconvert(Writer writer, Properties properties, Map<String, Properties> profiles) Convert Java Properties to Jodd Props format.
-
Constructor Details
-
PropsConverter
public PropsConverter()
-
-
Method Details
-
convert
Convert Java Properties to Jodd Props format.- Parameters:
writer- Writer to write Props formatted file content toproperties- Properties to convert to Props format- Throws:
IOException- On any I/O error when writing to the writer
-
convert
public static void convert(Writer writer, Properties properties, Map<String, Properties> profiles) throws IOExceptionConvert Java Properties to Jodd Props format.- Parameters:
writer- Writer to write Props formatted file content toproperties- Properties to convert to Props formatprofiles- Properties per profile to convert and add to the Props format- Throws:
IOException- On any I/O error when writing to the writer
-