Class OFileManager
java.lang.Object
com.orientechnologies.orient.etl.util.OFileManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ODocumentbuildJsonFromFile(String filePath) It returns a ODocument starting from a json file.static voiddeleteResource(String resourcePath) static voidextractAll(String inputArchiveFilePath, String outputFolderPath) static Stringstatic voidstatic voidwriteFileFromText(String text, String outFilePath, boolean append)
-
Constructor Details
-
OFileManager
public OFileManager()
-
-
Method Details
-
deleteResource
- Throws:
IOException
-
extractAll
public static void extractAll(String inputArchiveFilePath, String outputFolderPath) throws IOException - Throws:
IOException
-
unZipAll
- Throws:
IOException
-
readAllTextFile
- Throws:
IOException
-
buildJsonFromFile
It returns a ODocument starting from a json file.- Parameters:
filePath-- Returns:
- ODocument (null if the file does not exist or problem are encountered during the reading)
- Throws:
IOException
-
writeFileFromText
public static void writeFileFromText(String text, String outFilePath, boolean append) throws IOException - Throws:
IOException
-