public interface PathNamingService
Modifier and Type | Method and Description |
---|---|
Path |
buildTargetPath(Path originalPath,
Path targetParentDirectory,
String targetFileName)
Creates a path to a file or directory in another parent directory, keeping the original file extension (if applicable).
|
Path |
buildTargetPath(Path originalPath,
String targetFileName)
Creates a path by renaming a file or directory, keeping the original file extension (if applicable).
|
String |
getExtension(String fileName)
Returns the extension of the passed file name.
|
Path buildTargetPath(Path originalPath, String targetFileName)
originalPath
- Original file pathtargetFileName
- New file namePath buildTargetPath(Path originalPath, Path targetParentDirectory, String targetFileName)
originalPath
- Original file pathtargetParentDirectory
- Parent directory of the created file/directory pathtargetFileName
- New file nameCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.