org.sourcejammer.server.source
Class BinaryDelta

java.lang.Object
  |
  +--org.sourcejammer.server.source.BinaryDelta
All Implemented Interfaces:
Delta, java.io.Serializable

Deprecated. No more binary diffs in SourceJammer. Use compressed, full-source, or no history options. Provided for backward compatability with prevously saved binary files.

Represents the differences (or delta) between two versions of a binary file such that this BinaryDelta can be applied to the "old" file version to reproduce the new file version.

public class BinaryDelta
extends java.lang.Object
implements java.io.Serializable, Delta

See Also:
Serialized Form

Field Summary
private  int miNewFileSize
          Deprecated.  
private  java.util.Vector mvecBuildSteps
          Deprecated.  
 
Constructor Summary
BinaryDelta()
          Deprecated. Default constructor.
 
Method Summary
 void addBuildStep(SourceBuildStepInf step)
          Deprecated. Adds a single step to be used in building new version from old version.
private  java.io.ByteArrayOutputStream buildBinaryFile(SourceInputStream parent, java.io.ByteArrayOutputStream newSource)
          Deprecated.  
 java.io.ByteArrayOutputStream buildFile(SourceInputStream parent)
          Deprecated. Applies this BinaryDelta file to the file in parent to produce the new file version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

miNewFileSize

private int miNewFileSize
Deprecated. 

mvecBuildSteps

private java.util.Vector mvecBuildSteps
Deprecated. 
Constructor Detail

BinaryDelta

public BinaryDelta()
Deprecated. 
Default constructor.

Method Detail

addBuildStep

public void addBuildStep(SourceBuildStepInf step)
Deprecated. 
Adds a single step to be used in building new version from old version. Note that steps are added and executed in the same sequence.


buildFile

public java.io.ByteArrayOutputStream buildFile(SourceInputStream parent)
                                        throws InvalidSourceException,
                                               java.io.IOException
Deprecated. 
Applies this BinaryDelta file to the file in parent to produce the new file version.

InvalidSourceException
java.io.IOException

buildBinaryFile

private java.io.ByteArrayOutputStream buildBinaryFile(SourceInputStream parent,
                                                      java.io.ByteArrayOutputStream newSource)
                                               throws InvalidSourceException
Deprecated. 
InvalidSourceException


Copyright 2003 Soucejammer project.