Package com._1c.g5.v8.dt.compare.merge
Class ReplaceFileContentPostponedOperation
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.merge.ReplaceFileContentPostponedOperation
-
- All Implemented Interfaces:
IPostponedFileOperation
public class ReplaceFileContentPostponedOperation extends Object implements IPostponedFileOperation
The postponed operation of replacing an existing file content.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.compare.merge.IPostponedFileOperation
IPostponedFileOperation.IContentStreamProvider
-
-
Constructor Summary
Constructors Constructor Description ReplaceFileContentPostponedOperation(Path mainPath, IPostponedFileOperation.IContentStreamProvider contentStreamProvider)
Creates a new instance.ReplaceFileContentPostponedOperation(Path mainPath, Path otherPath)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
perform(IMergeSession mergeSession)
Performs the operation.
-
-
-
Constructor Detail
-
ReplaceFileContentPostponedOperation
public ReplaceFileContentPostponedOperation(Path mainPath, Path otherPath)
Creates a new instance.- Parameters:
mainPath
- the main side file path, cannot benull
otherPath
- the other side file path whose content will be taken to replace the main side file content, cannot benull
-
ReplaceFileContentPostponedOperation
public ReplaceFileContentPostponedOperation(Path mainPath, IPostponedFileOperation.IContentStreamProvider contentStreamProvider)
Creates a new instance.- Parameters:
mainPath
- the main side file path, cannot benull
contentStreamProvider
- the content input stream provider to replace the main side file content, cannot benull
-
-
Method Detail
-
perform
public void perform(IMergeSession mergeSession)
Description copied from interface:IPostponedFileOperation
Performs the operation.- Specified by:
perform
in interfaceIPostponedFileOperation
- Parameters:
mergeSession
- the merge session, cannot benull
-
-