class MergeFormatterPass
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.charset.Charset |
charset |
private java.lang.String |
lastConflictingName |
private EolAwareOutputStream |
out |
private MergeResult<RawText> |
res |
private java.util.List<java.lang.String> |
seqName |
private boolean |
threeWayMerge |
Constructor and Description |
---|
MergeFormatterPass(java.io.OutputStream out,
MergeResult<RawText> res,
java.util.List<java.lang.String> seqName,
java.nio.charset.Charset charset) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
formatMerge() |
private void |
writeConflictChange(MergeChunk chunk) |
private void |
writeConflictEnd() |
private void |
writeConflictMetadata(MergeChunk chunk) |
private void |
writeConflictStart(MergeChunk chunk) |
private void |
writeLine(RawText seq,
int i) |
private void |
writeln(java.lang.String s) |
private final EolAwareOutputStream out
private final MergeResult<RawText> res
private final java.util.List<java.lang.String> seqName
private final java.nio.charset.Charset charset
private final boolean threeWayMerge
private java.lang.String lastConflictingName
MergeFormatterPass(java.io.OutputStream out, MergeResult<RawText> res, java.util.List<java.lang.String> seqName, java.nio.charset.Charset charset)
out
- the OutputStream
where to write the textual
presentationres
- the merge result which should be presentedseqName
- When a conflict is reported each conflicting range will get a
name. This name is following the "<<<<<<<
" or ">>>>>>> " conflict markers. The
names for the sequences are given in this listcharset
- the character set used when writing conflict metadatavoid formatMerge() throws java.io.IOException
java.io.IOException
private void writeConflictMetadata(MergeChunk chunk) throws java.io.IOException
java.io.IOException
private void writeConflictEnd() throws java.io.IOException
java.io.IOException
private void writeConflictStart(MergeChunk chunk) throws java.io.IOException
java.io.IOException
private void writeConflictChange(MergeChunk chunk) throws java.io.IOException
java.io.IOException
private void writeln(java.lang.String s) throws java.io.IOException
java.io.IOException
private void writeLine(RawText seq, int i) throws java.io.IOException
java.io.IOException