java.lang.Object
de.cuioss.tools.io.StructuredFilename
- All Implemented Interfaces:
Serializable
Helper class for splitting / interacting with Filename and corresponding
suffixes.
- Author:
- Oliver Wolff
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStructuredFilename(File file) ConstructorStructuredFilename(String filename) Constructor.StructuredFilename(Path path) Constructor -
Method Summary
-
Constructor Details
-
StructuredFilename
Constructor.- Parameters:
filename- to be checked
-
StructuredFilename
Constructor- Parameters:
path- to be used as source, must not be null
-
StructuredFilename
Constructor- Parameters:
file- to be used as source, must not be null
-
-
Method Details
-
getAppendedName
- Parameters:
nameSuffix- to be used for appending the name part. may be null- Returns:
- the created name string. if namePart = "namePart", nameSuffix=".nameSuffix" and suffix = "suffix" the resulting String will be "namePart.nameSuffix.suffix"
-