TrueUpdate Core 0.3

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 ZIP diff 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.
 DiffModel model()
          Computes a diff model from the two input archives.
 void output(ZipOutput diff)
          Writes the diff archive.
 
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 DiffModel model()
                throws IOException
Computes a diff model from the two input archives.

Throws:
IOException

output

public void output(@WillNotClose
                   ZipOutput diff)
            throws IOException
Writes the diff archive.

Throws:
IOException

TrueUpdate Core 0.3

Copyright © 2013 Schlichtherle IT Services. All rights reserved.