Interface IFileApi
-
public interface IFileApi
The API for file operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createOrSetContent(org.eclipse.core.resources.IFile file, Supplier<InputStream> streamSupplier)
Creates a new file with the content provided by the supplier or just set the file content if it already exists.void
delete(org.eclipse.core.resources.IFile file)
Deletes the specified file.void
move(org.eclipse.core.resources.IFile src, org.eclipse.core.resources.IFile dst)
Moves the specifiedsrc
file to thedst
.
-
-
-
Method Detail
-
createOrSetContent
void createOrSetContent(org.eclipse.core.resources.IFile file, Supplier<InputStream> streamSupplier)
Creates a new file with the content provided by the supplier or just set the file content if it already exists.- Parameters:
file
- the file to create or set content, cannot benull
.streamSupplier
- the supplier of the input stream, cannot benull
.
-
delete
void delete(org.eclipse.core.resources.IFile file)
Deletes the specified file.- Parameters:
file
- the file to delete, cannot benull
.
-
move
void move(org.eclipse.core.resources.IFile src, org.eclipse.core.resources.IFile dst)
Moves the specifiedsrc
file to thedst
.- Parameters:
src
- the source file to move, cannot benull
.dst
- the destination, cannot benull
.
-
-