com.zeroturnaround.liverebel.util.diff.simple
Class ZipSimpleDiffUtil

java.lang.Object
  extended by com.zeroturnaround.liverebel.util.diff.simple.ZipSimpleDiffUtil

public class ZipSimpleDiffUtil
extends Object

Util to create simple diffs.

Author:
Igor Bljahhin

Nested Class Summary
static class ZipSimpleDiffUtil.CopySourceResourcesToOutputArchiveCallback
           
 
Constructor Summary
ZipSimpleDiffUtil()
           
 
Method Summary
static VersionListingDiff analyze(VersionListing oldVersion, VersionListing newVersion)
           
static void makeDiff(File sourceFile, LiveRebelXml newLiveRebelXml, VersionListing oldVersion, VersionListing newVersion, ZipOutputStream diffOutputStream)
           
static void makeDiff(File sourceFile, VersionListingDiff diff, ZipOutputStream zos)
           
static void makeDiff(File sourceFile, VersionListing oldVersion, VersionListing newVersion, ZipOutputStream diffOutputStream)
           
static void patch(File source, File patch, File toFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipSimpleDiffUtil

public ZipSimpleDiffUtil()
Method Detail

analyze

public static VersionListingDiff analyze(VersionListing oldVersion,
                                         VersionListing newVersion)

makeDiff

public static void makeDiff(File sourceFile,
                            LiveRebelXml newLiveRebelXml,
                            VersionListing oldVersion,
                            VersionListing newVersion,
                            ZipOutputStream diffOutputStream)
                     throws IOException
Throws:
IOException

makeDiff

public static void makeDiff(File sourceFile,
                            VersionListing oldVersion,
                            VersionListing newVersion,
                            ZipOutputStream diffOutputStream)
                     throws IOException
Throws:
IOException

makeDiff

public static void makeDiff(File sourceFile,
                            VersionListingDiff diff,
                            ZipOutputStream zos)
                     throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

patch

public static void patch(File source,
                         File patch,
                         File toFile)
                  throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.