Package de.regnis.q.sequence.line.diff
Class QDiffSequenceGenerator
- java.lang.Object
-
- de.regnis.q.sequence.line.diff.QDiffSequenceGenerator
-
- All Implemented Interfaces:
QDiffGenerator
- Direct Known Subclasses:
QDiffNormalGenerator
,QDiffUniGenerator
public abstract class QDiffSequenceGenerator extends Object implements QDiffGenerator
- Author:
- Ian Sullivan, TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QDiffSequenceGenerator(Map properties, String header)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.regnis.q.sequence.line.diff.QDiffGenerator
generateDiffHeader
-
-
-
-
Method Detail
-
processBlock
protected abstract void processBlock(QSequenceDifferenceBlock[] segment, QSequenceLineCache sourceLines, QSequenceLineCache targetLines, String encoding, Writer output) throws IOException
- Throws:
IOException
-
processBlock
protected abstract void processBlock(QSequenceDifferenceBlock[] segment, QSequenceLineCache sourceLines, QSequenceLineCache targetLines, OutputStream output) throws IOException
- Throws:
IOException
-
generateBinaryDiff
public void generateBinaryDiff(InputStream left, InputStream right, String encoding, Writer output) throws IOException
- Specified by:
generateBinaryDiff
in interfaceQDiffGenerator
- Throws:
IOException
-
generateTextDiff
public void generateTextDiff(InputStream left, InputStream right, String encoding, Writer output) throws IOException
- Specified by:
generateTextDiff
in interfaceQDiffGenerator
- Throws:
IOException
-
generateTextDiff
public void generateTextDiff(QSequenceLineRAData left, QSequenceLineRAData right, String encoding, Writer output) throws IOException
- Specified by:
generateTextDiff
in interfaceQDiffGenerator
- Throws:
IOException
-
generateTextDiff
public void generateTextDiff(QSequenceLineRAData left, QSequenceLineRAData right, OutputStream output) throws IOException
- Throws:
IOException
-
generateTextDiff
public void generateTextDiff(RandomAccessFile left, RandomAccessFile right, String encoding, Writer output) throws IOException
- Specified by:
generateTextDiff
in interfaceQDiffGenerator
- Throws:
IOException
-
generateTextDiff
public void generateTextDiff(RandomAccessFile left, RandomAccessFile right, OutputStream output) throws IOException
- Specified by:
generateTextDiff
in interfaceQDiffGenerator
- Throws:
IOException
-
getProperties
protected Map getProperties()
-
getHunkDelimiter
protected String getHunkDelimiter()
-
getEOL
protected String getEOL()
-
getSimplifier
protected QSequenceLineSimplifier getSimplifier()
-
getGutter
protected int getGutter()
-
printLine
protected String printLine(QSequenceLine line, String encoding) throws IOException
- Throws:
IOException
-
println
protected void println(Writer output) throws IOException
- Throws:
IOException
-
println
protected void println(OutputStream output) throws IOException
- Throws:
IOException
-
println
protected void println(String str, Writer output) throws IOException
- Throws:
IOException
-
println
protected void println(String str, OutputStream output) throws IOException
- Throws:
IOException
-
print
protected void print(String str, Writer output) throws IOException
- Throws:
IOException
-
print
protected void print(String str, OutputStream output) throws IOException
- Throws:
IOException
-
-