37 |
|
|
38 |
package java.util.zip; |
package java.util.zip; |
39 |
|
|
40 |
/* |
/** |
41 |
* Contains the output from the Inflation process. |
* Contains the output from the Inflation process. |
42 |
* |
* |
43 |
* We need to have a window so that we can refer backwards into the output stream |
* We need to have a window so that we can refer backwards into the output stream |
44 |
* to repeat stuff. |
* to repeat stuff. |
45 |
* |
* |
46 |
* @author John Leuner |
* @author John Leuner |
47 |
* @since JDK 1.1 |
* @since 1.1 |
48 |
*/ |
*/ |
|
|
|
49 |
class OutputWindow |
class OutputWindow |
50 |
{ |
{ |
51 |
private final int WINDOW_SIZE = 1 << 15; |
private static final int WINDOW_SIZE = 1 << 15; |
52 |
private final int WINDOW_MASK = WINDOW_SIZE - 1; |
private static final int WINDOW_MASK = WINDOW_SIZE - 1; |
53 |
|
|
54 |
private byte[] window = new byte[WINDOW_SIZE]; //The window is 2^15 bytes |
private byte[] window = new byte[WINDOW_SIZE]; //The window is 2^15 bytes |
55 |
private int window_end = 0; |
private int window_end = 0; |