Package org.eclipse.compare
Interface IStreamMerger
Deprecated.
This interface defines a single operation for performing a three-way merge on three
input streams. The merged result is written to an output stream.
Clients must implement this interface when contributing new mergers to the
org.eclipse.compare.streamMergers extension point.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionmerge(OutputStream output, String outputEncoding, InputStream ancestor, String ancestorEncoding, InputStream target, String targetEncoding, InputStream other, String otherEncoding, IProgressMonitor monitor) Deprecated.
-
Field Details
-
OK
Deprecated.Indicates the successful completion of the merge operation (valueIStatus.OK)- See Also:
-
CONFLICT
Deprecated.Indicates that a change conflict prevented the merge from successful completion (value1)- See Also:
-
INTERNAL_ERROR
Deprecated.Status code describing an internal error (value2)- See Also:
-
-
Method Details
-
merge
@Deprecated IStatus merge(OutputStream output, String outputEncoding, InputStream ancestor, String ancestorEncoding, InputStream target, String targetEncoding, InputStream other, String otherEncoding, IProgressMonitor monitor) Deprecated.Performs a merge operation on the given input streams and writes the merge result to the output stream. On success a statusIStatus.OKis returned, on error a statusIStatus.ERROR. If the merge operation cannot deal with conflicts, the code of the error status has the valueIStreamMerger.CONFLICT. For text oriented mergers the encoding for the input and output streams is honored. It is the responsibility of callers to close input and output streams.- Parameters:
output- the byte stream to which the merge result is written; the merger will not close the streamoutputEncoding- the encoding to use when writing to the output streamancestor- the byte stream from which the common ancestor is readancestorEncoding- the encoding of the ancestor input byte streamtarget- the byte stream containing the target of the mergetargetEncoding- the encoding of the target input byte streamother- the byte stream containing the target of the mergeotherEncoding- the encoding of the other input byte streammonitor- reports progress of the merge operation- Returns:
- returns the completion status of the operation
-
org.eclipse.team.core.mapping.IStorageMergerinstead.