|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kex.controller.util.IOHandler
public final class IOHandler
This class provides all methods to access I/O.
Field Summary | |
---|---|
static String |
MANIFEST_MF
The variable holds manifest_mf filename. |
static String |
PLUGIN_XML
The variable holds plugin.xml filename. |
static String |
PROJECT_FILE
The variable holds project filename. |
Method Summary | |
---|---|
static void |
createFolder(String destFolder)
creates a folder with given parameter. |
static boolean |
deleteFile(File deletable)
deletes a file or a directory. |
static File |
filterPluginProject(File location)
searches for a java project, therefore the ".project" file is searched. |
static File |
filterPluginXML(File location)
filters the plugin.xml of plugin project for given destination. Searches first for a java project by checking parent dirs for containing ".project" file. |
static File |
searchUP(File sourceDir,
String fileName)
Searches for an file with matching fileName in parent folders of source directory. |
static void |
writeFile(URL sourceUrl,
String destPath,
boolean checkDuplicate)
|
static void |
writeResource(File sourceFile,
File destFile)
writes the resource from sourceFile to destFile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROJECT_FILE
public static final String MANIFEST_MF
public static final String PLUGIN_XML
Method Detail |
---|
public static void writeResource(File sourceFile, File destFile) throws IOException
sourceFile
- , File
destFile
- , File
IOException
- , if sourcefile not exists.public static boolean deleteFile(File deletable)
deletable
- , File
public static File filterPluginProject(File location)
location
- , File into a plugin project.
public static File filterPluginXML(File location)
location
- , folder in an plugin project.
public static File searchUP(File sourceDir, String fileName)
sourceDir
- , FilefileName
- , String
public static void writeFile(URL sourceUrl, String destPath, boolean checkDuplicate) throws IOException
sourceUrl
- , source URLdestPath
- , destination path as StringcheckDuplicate
- , boolean
IOException
- , can occur while io writing.public static void createFolder(String destFolder)
destFolder
- , pathname of destination folder.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |