Package net.n2oapp.properties.io
Class PropertiesRewriter
- java.lang.Object
-
- net.n2oapp.properties.io.PropertiesRewriter
-
public class PropertiesRewriter extends Object
- Author:
- V. Alexeev.
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_VALUE_FORMAT
-
Constructor Summary
Constructors Constructor Description PropertiesRewriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K> voidremoveProperty(org.springframework.core.io.Resource resource, K key)static <K,V>
voidupdateProperty(org.springframework.core.io.Resource resource, K key, V value)
-
-
-
Field Detail
-
KEY_VALUE_FORMAT
public static final String KEY_VALUE_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
updateProperty
public static <K,V> void updateProperty(org.springframework.core.io.Resource resource, K key, V value) throws IOException- Throws:
IOException
-
removeProperty
public static <K> void removeProperty(org.springframework.core.io.Resource resource, K key) throws IOException- Throws:
IOException
-
-