TrueUpdate Core 0.5

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

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

@Immutable
public abstract class RawZipDiff
extends Object

Compares two archives entry by entry. Archives may be ZIP, JAR, EAR or WAR files. This class requires you to implement its ZipFile and MessageDigest properties, but enables you to obtain the delta model besides diffing the input archives.

Author:
Christian Schlichtherle

Constructor Summary
RawZipDiff()
           
 
Method Summary
protected abstract  MessageDigest digest()
          Returns the message digest.
protected abstract  ZipInput input1()
          Returns the first input archive.
protected abstract  ZipInput input2()
          Returns the second input archive.
 DeltaModel model()
          Computes a delta model from the two input archives.
 void output(ZipOutput delta)
          Writes the delta ZIP file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawZipDiff

public RawZipDiff()
Method Detail

digest

protected abstract MessageDigest digest()
Returns the message digest.


input1

@WillNotClose
protected abstract ZipInput input1()
Returns the first input archive.


input2

@WillNotClose
protected abstract ZipInput input2()
Returns the second input archive.


model

public DeltaModel model()
                 throws IOException
Computes a delta model from the two input archives.

Throws:
IOException

output

public void output(@WillNotClose
                   ZipOutput delta)
            throws IOException
Writes the delta ZIP file.

Throws:
IOException

TrueUpdate Core 0.5

Copyright © 2013 Schlichtherle IT Services. All rights reserved.