Class FileUtils
- java.lang.Object
-
- io.patriot_framework.network_simulator.docker.files.FileUtils
-
public class FileUtils extends Object
Class is providing utils for work with files and dirs.
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convertToFile(InputStream inputStream, String name)
Method converts input stream to file, returns file`s absolute path.void
deleteDirWithFiles(File dir)
Method provides deleting dir with all content inside.
-
-
-
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 contentname
- 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
-
-