|
JavaSVN Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tmatesoft.svn.core.io.diff.SVNSequenceDeltaGenerator
SVNDeltaGenerator
The SVNSequenceDeltaGenerator class is a delta generator that produces defferences delta for two text files, and full text delta if a target file is binary.
| Constructor Summary | |
SVNSequenceDeltaGenerator(File tempDirectory)
Deprecated. Creates a sequence delta generator given a temporary directory where all necessary temporary files will be created. |
|
| Method Summary | |
void |
generateDiffWindow(String commitPath,
ISVNEditor consumer,
ISVNRAData workFile,
ISVNRAData baseFile)
Deprecated. Generates a diff window comparing the two given files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVNSequenceDeltaGenerator(File tempDirectory)
tempDirectory - a temporary directory| Method Detail |
public void generateDiffWindow(String commitPath,
ISVNEditor consumer,
ISVNRAData workFile,
ISVNRAData baseFile)
throws SVNException
If any of workFile & baseFile is binary, then
actually uses an SVNAllDeltaGenerator to generate a replacement
diff window.
consumer receives the generated diff window and provides an
output stream to write new data bytes:
OutputStream os = consumer.textDeltaChunk(commitPath, window);
When the bytes are written, the generator calls:
consumer.textDeltaEnd(commitPath);
generateDiffWindow in interface ISVNDeltaGeneratorcommitPath - a file pathconsumer - an editor that receives the generated
dif window(s)workFile - a working version of the file (target file)baseFile - a base (prestine) version of the file
SVNException - if an i/o error occurredSVNAllDeltaGenerator
|
JavaSVN Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||