Class FileApi
java.lang.Object
com._1c.g5.v8.dt.internal.core.operations.file.FileApi
- All Implemented Interfaces:
IFileApi
The
IFileApi
implementation that performs IFile
manipulations as a
resource operation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
.
-
Constructor Details
-
FileApi
public FileApi()
-
-
Method Details
-
createOrSetContent
public void createOrSetContent(org.eclipse.core.resources.IFile file, Supplier<InputStream> streamSupplier) Description copied from interface:IFileApi
Creates a new file with the content provided by the supplier or just set the file content if it already exists.- Specified by:
createOrSetContent
in interfaceIFileApi
- Parameters:
file
- the file to create or set content, cannot benull
.streamSupplier
- the supplier of the input stream, cannot benull
.
-
delete
public void delete(org.eclipse.core.resources.IFile file) Description copied from interface:IFileApi
Deletes the specified file. -
move
public void move(org.eclipse.core.resources.IFile src, org.eclipse.core.resources.IFile dst) Description copied from interface:IFileApi
Moves the specifiedsrc
file to thedst
.
-