public class FilenamePatternResolver extends Object
The template recognizes the following escape-sequences:
| Constructor and Description |
|---|
FilenamePatternResolver(String pTemplate)
Constructor (uses the default escape-char of %).
|
FilenamePatternResolver(String pTemplate,
char pEscChar)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createName(String pFilename)
Generate a filename based on the input-file and the template.
|
String |
getDrive(File pFile)
Get the drive-letter of the given file.
|
String |
getExt(File pFile)
Get the extension of the given file
|
String |
getFullname(File pFile)
Get the full filename of the given file
|
String |
getFullpath(File pFile)
Get the full pathname of the given file
|
String |
getName(File pFile)
Get the filename of the given file (filename without extension).
|
String |
getPath(File pFile)
Get the pathname of the given file
|
public FilenamePatternResolver(String pTemplate)
pTemplate - The template for this FilenamePatternResolverpublic FilenamePatternResolver(String pTemplate, char pEscChar)
pTemplate - The template for this FilenamePatternResolverpEscChar - The escape-character used in pTemplatepublic String createName(String pFilename)
pFilename - The input-filenamepublic String getDrive(File pFile)
pFile - The input filepublic String getFullpath(File pFile)
pFile - The input filepublic String getPath(File pFile)
pFile - The input filepublic String getFullname(File pFile)
pFile - The input filepublic String getName(File pFile)
pFile - The input fileCopyright © 2019. All rights reserved.