|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmt.weaver.plugin.util.UtilFile
public class UtilFile
This class contains convenient static methods for working with IO files
| Constructor Summary | |
|---|---|
UtilFile()
|
|
| Method Summary | |
|---|---|
static java.io.File |
getFile(java.lang.String pathname)
Returns the file (corresponding to this pathname) |
static java.lang.String |
getFileExtension(java.lang.String filename)
Gets the extension of a file |
static java.lang.String |
getFileNameFromPath(java.lang.String path)
Returns the name of the file |
static java.io.File |
getRepertory(java.lang.String pathname)
Returns the directory (corresponding to this pathname) |
static java.io.InputStream |
getStreamForFile(java.lang.String fileName)
returns the stream for the file pathname |
static boolean |
testIfFileExist(java.lang.String filePath)
Returns true if file exists (false if file doesn't exist) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilFile()
| Method Detail |
|---|
public static java.io.InputStream getStreamForFile(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - : String
java.io.FileNotFoundExceptionpublic static boolean testIfFileExist(java.lang.String filePath)
path - : String
public static java.lang.String getFileNameFromPath(java.lang.String path)
path - : String
public static java.lang.String getFileExtension(java.lang.String filename)
filename -
public static java.io.File getFile(java.lang.String pathname)
pathname -
public static java.io.File getRepertory(java.lang.String pathname)
pathname -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||