diff options
| author | Jeroen Frijters <jeroen@sumatra.nl> | 2006-02-21 09:21:52 +0000 |
|---|---|---|
| committer | Jeroen Frijters <jeroen@sumatra.nl> | 2006-02-21 09:21:52 +0000 |
| commit | 80963a024a60371c5bb609165399e09214d021a0 (patch) | |
| tree | d80a40495020c44055f6e7fefc8c05c684e0146d /java/util/zip/ZipOutputStream.java | |
| parent | 34b6c1d7b0d3919439c857650bcd26c08989fae4 (diff) | |
| download | classpath-80963a024a60371c5bb609165399e09214d021a0.tar.gz | |
2006-02-20 Stuart Ballard <stuart.a.ballard@gmail.com>
* java/util/zip/ZipConstants.java
(LOCSIG): Change type to long.
(EXTSIG): Likewise.
(CENSIG): Likewise.
(ENDSIG): Likewise.
* java/util/zip/ZipOutputStream.java
(writeLeInt(long)): New method.
Diffstat (limited to 'java/util/zip/ZipOutputStream.java')
| -rw-r--r-- | java/util/zip/ZipOutputStream.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/java/util/zip/ZipOutputStream.java b/java/util/zip/ZipOutputStream.java index 5c593b2c4..d292f7d40 100644 --- a/java/util/zip/ZipOutputStream.java +++ b/java/util/zip/ZipOutputStream.java @@ -1,5 +1,5 @@ /* ZipOutputStream.java -- - Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -161,6 +161,16 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant } /** + * Write a long value as an int. Some of the zip constants + * are declared as longs even though they fit perfectly well + * into integers. + */ + private void writeLeInt(long value) throws IOException + { + writeLeInt((int) value); + } + + /** * Starts a new Zip entry. It automatically closes the previous * entry if present. If the compression method is stored, the entry * must have a valid size and crc, otherwise all elements (except |
