Class PropertyReplacer


  • public class PropertyReplacer
    extends java.lang.Object
    Utility that copies content from reader to writer replacing the properties.
    Author:
    Alexey Loubyansky
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(java.io.Reader reader, java.io.Writer writer, PropertyResolver properties)  
      static void copy​(java.nio.file.Path src, java.nio.file.Path target, PropertyResolver resolver)  
      • Methods inherited from class java.lang.Object

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

      • PropertyReplacer

        public PropertyReplacer()
    • Method Detail

      • copy

        public static void copy​(java.nio.file.Path src,
                                java.nio.file.Path target,
                                PropertyResolver resolver)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static void copy​(java.io.Reader reader,
                                java.io.Writer writer,
                                PropertyResolver properties)
                         throws java.io.IOException
        Throws:
        java.io.IOException