Package io.quarkus.bootstrap.util
Class IoUtils
java.lang.Object
io.quarkus.bootstrap.util.IoUtils
- Author:
- Alexey Loubyansky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(OutputStream out, InputStream in) static Pathstatic voidcreateOrEmptyDir(Path dir) Creates a new empty directory or empties an existing one.static PathcreateRandomDir(Path parentDir) static Pathstatic PathcreateTmpDir(String name) static Pathstatic Stringstatic voidrecursiveDelete(Path root) static void
-
Constructor Details
-
IoUtils
public IoUtils()
-
-
Method Details
-
createTmpDir
-
createRandomTmpDir
-
createRandomDir
-
mkdirs
-
recursiveDelete
-
createOrEmptyDir
Creates a new empty directory or empties an existing one.- Parameters:
dir- directory- Throws:
IOException- in case of a failure
-
copy
- Throws:
IOException
-
readFile
- Throws:
IOException
-
copy
- Throws:
IOException
-
writeFile
- Throws:
IOException
-