]> git.ipfire.org Git - thirdparty/gcc.git/commit
ZipFile.java (entries): Now HashMap.
authorArtur Biesiadowski <abies@pg.gda.pl>
Thu, 2 Jan 2003 21:01:24 +0000 (22:01 +0100)
committerMark Wielaard <mark@gcc.gnu.org>
Thu, 2 Jan 2003 21:01:24 +0000 (21:01 +0000)
commit1a82c94bde7e3ad443f7e841e4c073ffd5f1b9d0
tree3561bff61d37cdf84f2ae6eadbbbfaac40e0503e
parent1092805d387f6aa958ae2c7e26831a5ad511bb80
ZipFile.java (entries): Now HashMap.

* java/util/zip/ZipFile.java (entries): Now HashMap.
(readLeShort(DataInput, byte[])): Read from given byte array.
(readLeInt(DataInput, byte[]): Likewise.
(readLeShort(byte[] b, int off)): New method.
(readLeInt(byte[] b, int off)): Likewise.
(readEntries): Use byte arrays to read info in bigger chunks.
(getEntries): Return HashMap.
(getEntry): Use HashMap.
(locBuf): New private field.
(checkLocalHeader): Use locBuf to read info in one chunk.
(getInputStream): Use entries HashMap, wrap PartialInputStream
in BufferedInputStream.
(ZipEntryEnumeration): Use HashMap and Interator.

Co-Authored-By: Mark Wielaard <mark@klomp.org>
From-SVN: r60803
libjava/ChangeLog
libjava/java/util/zip/ZipFile.java