public final class PathUtils
extends java.lang.Object
Paths.| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getBaseFilename(java.nio.file.Path file)
Gets the base name of the file (i.e.
|
static java.lang.String |
getFilename(java.nio.file.Path file)
Gets the name of the file.
|
static java.nio.file.Path |
getPathToResource(java.lang.String filename)
Converts a resource file name into a
Path. |
@Nonnull
public static java.lang.String getFilename(@Nonnull
java.nio.file.Path file)
file is a regular file.@Nonnull
public static java.lang.String getBaseFilename(@Nonnull
java.nio.file.Path file)
file is a regular file.@Nonnull
public static java.nio.file.Path getPathToResource(@Nonnull
java.lang.String filename)
Path.filename - a relative filename (e.g. org/pharmgkb/common/file.txt)