Class PropertiesRewriter


  • public class PropertiesRewriter
    extends java.lang.Object
    Author:
    V. Alexeev.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_VALUE_FORMAT  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K> void removeProperty​(org.springframework.core.io.Resource resource, K key)  
      static <K,​V>
      void
      updateProperty​(org.springframework.core.io.Resource resource, K key, V value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • KEY_VALUE_FORMAT

        public static final java.lang.String KEY_VALUE_FORMAT
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertiesRewriter

        public PropertiesRewriter()
    • Method Detail

      • updateProperty

        public static <K,​V> void updateProperty​(org.springframework.core.io.Resource resource,
                                                      K key,
                                                      V value)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • removeProperty

        public static <K> void removeProperty​(org.springframework.core.io.Resource resource,
                                              K key)
                                       throws java.io.IOException
        Throws:
        java.io.IOException