|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.util.FileFunctions
public class FileFunctions
Some functions that manipulate files.
Creation date: 01-Feb-2005 11:58:05
Constructor Summary | |
---|---|
FileFunctions()
|
Method Summary | |
---|---|
static void |
copy(java.net.URL inFile,
java.lang.String outFile)
Copy a file frow an URL to the outFile |
static java.lang.String |
getFilenameFromContext(java.lang.String context,
java.lang.String fileName)
Returns the canonical filename of a file interpreted from the given context. If the filename correspond to an absolute file, the canonical path corresponding to this file is returned. If the filename is relative, it is interpreted relative to the context directory if it is a
directory, or from the directory parent to the context , if it is a regular file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileFunctions()
Method Detail |
---|
public static void copy(java.net.URL inFile, java.lang.String outFile) throws java.io.IOException
inFile
- outFile
-
java.io.IOException
public static java.lang.String getFilenameFromContext(java.lang.String context, java.lang.String fileName)
context
directory if it is a
directory, or from the directory parent to the context
, if it is a regular file.
context
- fileName
-
fileName
interpreted in the context context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |