Class FileUtils


  • public class FileUtils
    extends Object
    Class is providing utils for work with files and dirs.
    • Constructor Detail

      • FileUtils

        public FileUtils()
    • Method Detail

      • convertToFile

        public String convertToFile​(InputStream inputStream,
                                    String name)
        Method converts input stream to file, returns file`s absolute path. Used especially for Dockerfile stream from target jar package to tmp dirs...
        Parameters:
        inputStream - stream of file content
        name - name of created file
        Returns:
        absolute path to created file
      • deleteDirWithFiles

        public void deleteDirWithFiles​(File dir)
        Method provides deleting dir with all content inside.
        Parameters:
        dir - target directory