org.wso2.carbon.integration.common.utils
Class FileManager
java.lang.Object
org.wso2.carbon.integration.common.utils.FileManager
public class FileManager
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileManager
public FileManager()
readFile
public static String readFile(String filePath)
throws IOException
- Throws:
IOException
readFile
public static String readFile(File file)
throws IOException
- Throws:
IOException
writeToFile
public static void writeToFile(String filePath,
String content)
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(File sourceFile,
String destinationPath)
throws IOException
- Throws:
IOException
copyResourceToFileSystem
public static File copyResourceToFileSystem(String sourcePath,
String targetPath,
String fileName)
throws IOException
- Throws:
IOException
copyJarFile
public void copyJarFile(String sourceFileLocationWithFileName,
String destinationDirectory)
throws IOException,
URISyntaxException
- Throws:
IOException
URISyntaxException
copyJarFile
public static void copyJarFile(File sourceFile,
String destinationDirectory)
throws IOException
- Throws:
IOException
deleteFile
public static boolean deleteFile(String filePathWithFileName)
Copyright © 2015 WSO2. All rights reserved.