Skip to content

Commit

Permalink
Adapting to reordered method numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
esstrifork committed Jun 23, 2011
1 parent d6d87db commit 9e33c13
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/com/trifork/deltazip/DeltaZip.java
Expand Up @@ -19,12 +19,16 @@ public class DeltaZip {
public static final int DELTAZIP_MAGIC_HEADER = 0xCEB47A10;
public static final int FILE_HEADER_LENGTH = 4;

private static final int VERSION_SIZE_BITS = 28;
private static final int VERSION_SIZE_LIMIT = 1 << VERSION_SIZE_BITS;
// Snapshot methods (0-3):
public static final int METHOD_UNCOMPRESSED = 0;
public static final int METHOD_DEFLATED = 1;
// Delta methods (4-15):
public static final int METHOD_CHUNKED = 4;
public static final int METHOD_CHUNKED_MIDDLE = 5;

public static final int METHOD_UNCOMPRESSED = 0;
public static final int METHOD_CHUNKED = 2;

private static final int VERSION_SIZE_BITS = 28;
private static final int VERSION_SIZE_LIMIT = 1 << VERSION_SIZE_BITS;

protected static final CompressionMethod[] COMPRESSION_METHODS;
protected static final CompressionMethod UNCOMPRESSED_INSTANCE = new UncompressedMethod();
Expand Down

0 comments on commit 9e33c13

Please sign in to comment.