| Constructor and Description |
|---|
PathUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
createAbsolutePath(String directory,
String fileName)
Returns the absolute path of the specified file in the given directory.
|
String |
getAbsolutePath(Path path)
Returns the string representation of the specified path.
|
String |
getAbsolutePath(String path)
Returns the string representation of the specified path.
|
String |
toString(Path path)
Returns the string representation of the specified path.
|
public String toString(Path path) throws IOException
path - the path to get the absolute path forIOException - if the path could not be foundpublic String getAbsolutePath(String path)
path will be returned unchanged (but normalized using the UNIX path separator).path - the path to get the absolute path forpublic String getAbsolutePath(Path path)
path will be returned unchanged (but normalized using the UNIX path separator).path - the path to get the absolute path forpublic String createAbsolutePath(@CheckForNull String directory, String fileName)
directory - the directory that contains the filefileName - the file nameCopyright © 2018. All rights reserved.