public class FileManager extends Object
| Constructor and Description |
|---|
FileManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(File sourceFile,
String destinationPath) |
static void |
copyJarFile(File sourceFile,
String destinationDirectory) |
void |
copyJarFile(String sourceFileLocationWithFileName,
String destinationDirectory) |
static File |
copyResourceToFileSystem(String sourcePath,
String targetPath,
String fileName) |
static boolean |
deleteFile(String filePathWithFileName) |
static byte[] |
getBytesFromFile(String fileName) |
static String |
readFile(File file) |
static String |
readFile(String filePath) |
static void |
writeToFile(String filePath,
String content) |
public static String readFile(String filePath) throws IOException
IOExceptionpublic static String readFile(File file) throws IOException
IOExceptionpublic static void writeToFile(String filePath, String content) throws IOException
IOExceptionpublic static void copyFile(File sourceFile, String destinationPath) throws IOException
IOExceptionpublic static File copyResourceToFileSystem(String sourcePath, String targetPath, String fileName) throws IOException
IOExceptionpublic void copyJarFile(String sourceFileLocationWithFileName, String destinationDirectory) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic static void copyJarFile(File sourceFile, String destinationDirectory) throws IOException
IOExceptionpublic static boolean deleteFile(String filePathWithFileName)
public static byte[] getBytesFromFile(String fileName) throws IOException
IOExceptionCopyright © 2015 WSO2 Inc. All rights reserved.