public class PathUtil
extends java.lang.Object
Constructor and Description |
---|
PathUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteFileTree(java.nio.file.Path directory)
Deletes a directory recursively.
|
static java.lang.String |
readString(java.nio.file.Path path)
Reads path content.
|
static java.nio.file.Path |
resolve(java.nio.file.Path path,
java.lang.String... childs) |
static java.nio.file.Path |
resolve(java.nio.file.Path base,
java.lang.String child)
Resolves subpath in safer way.
|
public static java.nio.file.Path resolve(java.nio.file.Path base, java.lang.String child)
public static java.nio.file.Path resolve(java.nio.file.Path path, java.lang.String... childs)
public static java.lang.String readString(java.nio.file.Path path) throws java.io.IOException
java.io.IOException
public static void deleteFileTree(java.nio.file.Path directory) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team