public final class FileUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.io.ByteSource |
asByteSource(java.nio.file.Path path,
java.nio.file.OpenOption... openOptions)
Simplistic implementation of byte source based on a
Path , waiting for guava 21. |
static void |
copyDir(java.nio.file.Path source,
java.nio.file.Path dest) |
static java.nio.file.Path |
createDirectory(java.nio.file.Path directory) |
static void |
removeDir(java.nio.file.Path dir) |
public static void removeDir(java.nio.file.Path dir) throws java.io.IOException
java.io.IOException
public static void copyDir(java.nio.file.Path source, java.nio.file.Path dest) throws java.io.IOException
java.io.IOException
public static java.nio.file.Path createDirectory(java.nio.file.Path directory)
public static com.google.common.io.ByteSource asByteSource(java.nio.file.Path path, java.nio.file.OpenOption... openOptions)
Path
, waiting for guava 21.path
- openOptions
- Copyright © 2019. All rights reserved.