public abstract class QDiffSequenceGenerator extends Object implements QDiffGenerator
Modifier | Constructor and Description |
---|---|
protected |
QDiffSequenceGenerator(Map properties,
String header) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateDiffHeader
protected abstract void processBlock(QSequenceDifferenceBlock[] segment, QSequenceLineCache sourceLines, QSequenceLineCache targetLines, String encoding, Writer output) throws IOException
IOException
protected abstract void processBlock(QSequenceDifferenceBlock[] segment, QSequenceLineCache sourceLines, QSequenceLineCache targetLines, OutputStream output) throws IOException
IOException
public void generateBinaryDiff(InputStream left, InputStream right, String encoding, Writer output) throws IOException
generateBinaryDiff
in interface QDiffGenerator
IOException
public void generateTextDiff(InputStream left, InputStream right, String encoding, Writer output) throws IOException
generateTextDiff
in interface QDiffGenerator
IOException
public void generateTextDiff(QSequenceLineRAData left, QSequenceLineRAData right, String encoding, Writer output) throws IOException
generateTextDiff
in interface QDiffGenerator
IOException
public void generateTextDiff(QSequenceLineRAData left, QSequenceLineRAData right, OutputStream output) throws IOException
IOException
public void generateTextDiff(RandomAccessFile left, RandomAccessFile right, String encoding, Writer output) throws IOException
generateTextDiff
in interface QDiffGenerator
IOException
public void generateTextDiff(RandomAccessFile left, RandomAccessFile right, OutputStream output) throws IOException
generateTextDiff
in interface QDiffGenerator
IOException
protected Map getProperties()
protected String getHunkDelimiter()
protected String getEOL()
protected QSequenceLineSimplifier getSimplifier()
protected int getGutter()
protected String printLine(QSequenceLine line, String encoding) throws IOException
IOException
protected void println(Writer output) throws IOException
IOException
protected void println(OutputStream output) throws IOException
IOException
protected void println(String str, Writer output) throws IOException
IOException
protected void println(String str, OutputStream output) throws IOException
IOException
protected void print(String str, Writer output) throws IOException
IOException
protected void print(String str, OutputStream output) throws IOException
IOException
Copyright © 2020. All rights reserved.