public class DocumentDiff3
extends java.lang.Object
Hunk3
that can
record the changes and conflicts.Constructor and Description |
---|
DocumentDiff3(Document base,
Document left,
Document right)
Creates a new document diff 3 object.
|
Modifier and Type | Method and Description |
---|---|
Hunk3 |
getHunks()
Returns a chain of
Hunk3 s that contain the modifications. |
boolean |
hasConflicts()
Indicates if any of the hunks has a conflict.
|
void |
write(DiffWriter w,
boolean showBase)
Writes the resulting document to the given write.
|
void |
write(java.lang.StringBuffer buf,
java.lang.String lineSeparator,
boolean showBase)
Writes the resulting document to the given string buffer.
|
public Hunk3 getHunks()
Hunk3
s that contain the modifications.Hunk3
s.public boolean hasConflicts()
true
if any of the hunks has a conflict.public void write(java.lang.StringBuffer buf, java.lang.String lineSeparator, boolean showBase)
buf
- the string buffer to write tolineSeparator
- the line separator to useshowBase
- if set to true
the base section of a conflict
is also included in the output.public void write(DiffWriter w, boolean showBase) throws java.io.IOException
w
- the writer to write toshowBase
- if set to true
the base section of a conflict
is also included in the output.java.io.IOException
- if an I/O error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"