|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.taverna.io.FileNameUtil
public class FileNameUtil
This class contains utilities used with managing files. Last edited by $Author: sowen70 $
| Constructor Summary | |
|---|---|
FileNameUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getExtension(java.lang.String filename)
This method returns the extension of the file. |
static java.lang.String |
getExtensionFromPath(java.lang.String path)
This method gets the extension given fully qualified path/to/file.ext |
static java.lang.String |
replaceExtension(java.lang.String filename,
java.lang.String newExt)
This method replaces the extension of the current file. |
static java.lang.String |
replacePathExtension(java.lang.String path,
java.lang.String newExt)
This method replaces the extension of a file given a complete path for the file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileNameUtil()
| Method Detail |
|---|
public static java.lang.String getExtension(java.lang.String filename)
filename - The name of the file.
public static java.lang.String getExtensionFromPath(java.lang.String path)
path - The complete path to the file.
public static java.lang.String replaceExtension(java.lang.String filename,
java.lang.String newExt)
filename - The name of the file.newExt - The new extension for the file
public static java.lang.String replacePathExtension(java.lang.String path,
java.lang.String newExt)
path - The complete path to the file.newExt - The new extension for the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||