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
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
ConstructorsConstructorDescriptionReplaceFileContentPostponedOperation
(Path mainPath, IPostponedFileOperation.IContentStreamProvider contentStreamProvider) Creates a new instance.ReplaceFileContentPostponedOperation
(Path mainPath, Path otherPath) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(IMergeSession mergeSession) Performs the operation.
-
Constructor Details
-
ReplaceFileContentPostponedOperation
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 Details
-
perform
Description copied from interface:IPostponedFileOperation
Performs the operation.- Specified by:
perform
in interfaceIPostponedFileOperation
- Parameters:
mergeSession
- the merge session, cannot benull
-