TrueUpdate Core 0.1.7

net.java.trueupdate.core.zip.diff
Class ZipDiff

java.lang.Object
  extended by net.java.trueupdate.core.zip.diff.ZipDiff

@NotThreadSafe
public abstract class ZipDiff
extends Object

Compares two archives entry by entry. Archives may be ZIP, JAR, EAR or WAR files.

Author:
Christian Schlichtherle

Nested Class Summary
static class ZipDiff.Builder
          A builder for a ZIP diff.
 
Constructor Summary
ZipDiff()
           
 
Method Summary
static ZipDiff.Builder builder()
          Returns a new builder for a ZIP diff.
 DiffModel computeDiffModel()
          Computes a diff model from the two configured archives.
 void writePatchArchiveTo(Sink patchArchive)
          Writes a patch archive to the given sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipDiff

public ZipDiff()
Method Detail

builder

public static ZipDiff.Builder builder()
Returns a new builder for a ZIP diff.


computeDiffModel

public DiffModel computeDiffModel()
                           throws IOException
Computes a diff model from the two configured archives.

Throws:
IOException

writePatchArchiveTo

public void writePatchArchiveTo(Sink patchArchive)
                         throws IOException
Writes a patch archive to the given sink.

Parameters:
patchArchive - the sink for writing the patch archive.
Throws:
IOException

TrueUpdate Core 0.1.7

Copyright © 2013 Stimulus Software. All rights reserved.