public class FilePathManipulator extends Object
| Constructor and Description |
|---|
FilePathManipulator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getExtension(String str)
Get extension from filename if any.
|
static String |
getFileName(String str)
Returns the file name without leading directories or file description
(extension).
|
static String |
removeExtension(String str)
Remove extension from filename if any.
|
static String |
removeLeadingDirectories(String str)
Remove all leading pathname components from a filename.
|
public static String removeExtension(String str)
str - Filename to process.public static String getExtension(String str)
str - Filename to be processed.public static String removeLeadingDirectories(String str)
str - Filename to be processed.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.