public class IoUtils extends Object
| Constructor and Description |
|---|
IoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(OutputStream out,
InputStream in) |
static Path |
copy(Path source,
Path target) |
static Path |
createRandomDir(Path parentDir) |
static Path |
createRandomTmpDir() |
static Path |
createTmpDir(String name) |
static Path |
mkdirs(Path dir) |
static String |
readFile(Path file) |
static void |
recursiveDelete(Path root) |
static void |
writeFile(Path file,
String content) |
public static Path createRandomTmpDir()
public static void recursiveDelete(Path root)
public static Path copy(Path source, Path target) throws IOException
IOExceptionpublic static String readFile(Path file) throws IOException
IOExceptionpublic static void copy(OutputStream out, InputStream in) throws IOException
IOExceptionpublic static void writeFile(Path file, String content) throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.