Class Utils

java.lang.Object
ru.cwcode.tkach.config.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • appendTextToLine

      public static void appendTextToLine(Path filePath, int lineNumber, String textToAppend)
    • readString

      public static String readString(Path path)
    • writeString

      public static boolean writeString(Path path, String text)
    • createParentDirs

      public static void createParentDirs(File file) throws IOException
      Throws:
      IOException
    • getNewInstance

      public static <T> Optional<T> getNewInstance(Class<T> type)
    • copy

      public static void copy(Path original, Path backup)
    • getEnvironmentReplacerPreprocessor

      public static ConfigLoader.Preprocessor getEnvironmentReplacerPreprocessor()