public static class FileReference.Companion
Modifier and Type | Method and Description |
---|---|
FileReference |
newTmpFile(Context context,
java.lang.String prefix,
java.lang.String suffix)
Provide a reference to a new file in tmp directory with unique ID.
|
FileReference |
newWorkFile(Context context,
java.lang.String fileName,
java.lang.String extension,
Name path)
Create a reference for a file in a work directory. Filr itself is not created
|
FileReference |
openDataFile(Context context,
java.nio.file.Path path)
Create a reference using data scope file using path
|
FileReference |
openDataFile(Context context,
java.lang.String name) |
FileReference |
openFile(Context context,
java.nio.file.Path path)
Create a reference to the system scope file using path
|
FileReference |
openFile(Context context,
java.lang.String path)
Create a reference to the system scope file using string
|
public FileReference newTmpFile(Context context, java.lang.String prefix, java.lang.String suffix)
Provide a reference to a new file in tmp directory with unique ID.
public FileReference newWorkFile(Context context, java.lang.String fileName, java.lang.String extension, Name path)
Create a reference for a file in a work directory. Filr itself is not created
public FileReference openDataFile(Context context, java.nio.file.Path path)
Create a reference using data scope file using path
public FileReference openDataFile(Context context, java.lang.String name)
public FileReference openFile(Context context, java.nio.file.Path path)
Create a reference to the system scope file using path
public FileReference openFile(Context context, java.lang.String path)
Create a reference to the system scope file using string