TrueUpdate Core 0.1.4

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 ZIP files entry by entry.

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 ZIP diff model from the two ZIP files.
 void writePatchZipTo(Sink patchZip)
          Writes a patch ZIP file 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 ZIP diff model from the two ZIP files.

Throws:
IOException

writePatchZipTo

public void writePatchZipTo(Sink patchZip)
                     throws IOException
Writes a patch ZIP file to the given sink.

Parameters:
patchZip - the sink for writing the patch ZIP file.
Throws:
IOException

TrueUpdate Core 0.1.4

Copyright © 2013 Stimulus Software. All rights reserved.