Permalink
Browse files

Adapting to reordered method numbers.

  • Loading branch information...
1 parent d6d87db commit 9e33c13b3ee63d7061a3454beb979d873a9bdb9b @esstrifork esstrifork committed Jun 23, 2011
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/main/java/com/trifork/deltazip/DeltaZip.java
@@ -19,12 +19,16 @@
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();

0 comments on commit 9e33c13

Please sign in to comment.