/[classpath]/classpath/java/util/zip/DeflaterHuffman.java
ViewVC logotype

Diff of /classpath/java/util/zip/DeflaterHuffman.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tromey, Fri Apr 23 20:34:11 2004 UTC revision 1.5 by mkoch, Fri Oct 22 18:02:06 2004 UTC
# Line 1  Line 1 
1  /* java.util.zip.DeflaterHuffman  /* DeflaterHuffman.java --
2     Copyright (C) 2001 Free Software Foundation, Inc.     Copyright (C) 2001, 2004  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 59  class DeflaterHuffman Line 59  class DeflaterHuffman
59    private static final int[] BL_ORDER =    private static final int[] BL_ORDER =
60    { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 };    { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 };
61    
62    private final static String bit4Reverse =    private static String bit4Reverse =
63      "\000\010\004\014\002\012\006\016\001\011\005\015\003\013\007\017";      "\000\010\004\014\002\012\006\016\001\011\005\015\003\013\007\017";
64    
65    class Tree {    class Tree {
# Line 571  class DeflaterHuffman Line 571  class DeflaterHuffman
571      blTree.reset();      blTree.reset();
572    }    }
573    
574    private final int l_code(int len) {    private int l_code(int len) {
575      if (len == 255)      if (len == 255)
576        return 285;        return 285;
577    
# Line 584  class DeflaterHuffman Line 584  class DeflaterHuffman
584      return code + len;      return code + len;
585    }    }
586    
587    private final int d_code(int distance) {    private int d_code(int distance) {
588      int code = 0;      int code = 0;
589      while (distance >= 4)      while (distance >= 4)
590        {        {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26