|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.im4java.utils.FilenamePatternResolver
public class FilenamePatternResolver
This utility-class creates filenames from an input file and a template.
The template recognizes the following escape-sequences:
Constructor Summary | |
---|---|
FilenamePatternResolver(java.lang.String pTemplate)
Constructor (uses the default escape-char of %). |
|
FilenamePatternResolver(java.lang.String pTemplate,
char pEscChar)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
createName(java.lang.String pFilename)
Generate a filename based on the input-file and the template. |
java.lang.String |
getDrive(java.io.File pFile)
Get the drive-letter of the given file. |
java.lang.String |
getExt(java.io.File pFile)
Get the extension of the given file |
java.lang.String |
getFullname(java.io.File pFile)
Get the full filename of the given file |
java.lang.String |
getFullpath(java.io.File pFile)
Get the full pathname of the given file |
java.lang.String |
getName(java.io.File pFile)
Get the filename of the given file (filename without extension). |
java.lang.String |
getPath(java.io.File pFile)
Get the pathname of the given file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilenamePatternResolver(java.lang.String pTemplate)
pTemplate
- The template for this FilenamePatternResolverpublic FilenamePatternResolver(java.lang.String pTemplate, char pEscChar)
pTemplate
- The template for this FilenamePatternResolverpEscChar
- The escape-character used in pTemplateMethod Detail |
---|
public java.lang.String createName(java.lang.String pFilename)
pFilename
- The input-filename
public java.lang.String getDrive(java.io.File pFile)
pFile
- The input file
public java.lang.String getFullpath(java.io.File pFile)
pFile
- The input file
public java.lang.String getPath(java.io.File pFile)
pFile
- The input file
public java.lang.String getFullname(java.io.File pFile)
pFile
- The input file
public java.lang.String getName(java.io.File pFile)
pFile
- The input file
public java.lang.String getExt(java.io.File pFile)
pFile
- The input file
|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |