-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class WorkingDirectory implements AutoCloseable
Class that manage a temp local working directory.
-
-
Constructor Summary
Constructors Constructor Description WorkingDirectory()Create new local temp working directory.
-
Method Summary
Modifier and Type Method Description URLgetDirectoryUrl()StringgetFileContent(String filename)Get folder's file content. voidwriteFiles(Map<String, Array<byte>> files)Write multiple files inside the directory. StringgetFileAbsolutePath(String filename)voidclose()-
-
Method Detail
-
getDirectoryUrl
URL getDirectoryUrl()
-
getFileContent
String getFileContent(String filename)
Get folder's file content.
- Parameters:
filename- File's name
-
writeFiles
void writeFiles(Map<String, Array<byte>> files)
Write multiple files inside the directory.
- Parameters:
files- A map with relative paths + files names as keys and file contents as values.
-
getFileAbsolutePath
String getFileAbsolutePath(String filename)
- Parameters:
filename- File name
-
close
void close()
-
-
-
-