java.lang.Object
com._1c.g5.v8.dt.internal.core.operations.file.FileApi
All Implemented Interfaces:
IFileApi

public class FileApi extends Object implements IFileApi
The IFileApi implementation that performs IFile manipulations as a resource operation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 specified src file to the dst.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface IFileApi
      Parameters:
      file - the file to create or set content, cannot be null.
      streamSupplier - the supplier of the input stream, cannot be null.
    • delete

      public void delete(org.eclipse.core.resources.IFile file)
      Description copied from interface: IFileApi
      Deletes the specified file.
      Specified by:
      delete in interface IFileApi
      Parameters:
      file - the file to delete, cannot be null.
    • move

      public void move(org.eclipse.core.resources.IFile src, org.eclipse.core.resources.IFile dst)
      Description copied from interface: IFileApi
      Moves the specified src file to the dst.
      Specified by:
      move in interface IFileApi
      Parameters:
      src - the source file to move, cannot be null.
      dst - the destination, cannot be null.