aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net
diff options
context:
space:
mode:
authorArtur Biesiadowski <abies@pg.gda.pl>2003-01-02 22:01:24 +0100
committerMark Wielaard <mark@gcc.gnu.org>2003-01-02 21:01:24 +0000
commit1a82c94bde7e3ad443f7e841e4c073ffd5f1b9d0 (patch)
tree3561bff61d37cdf84f2ae6eadbbbfaac40e0503e /libjava/java/net
parent1092805d387f6aa958ae2c7e26831a5ad511bb80 (diff)
downloadgcc-1a82c94bde7e3ad443f7e841e4c073ffd5f1b9d0.zip
gcc-1a82c94bde7e3ad443f7e841e4c073ffd5f1b9d0.tar.gz
gcc-1a82c94bde7e3ad443f7e841e4c073ffd5f1b9d0.tar.bz2
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
Diffstat (limited to 'libjava/java/net')
0 files changed, 0 insertions, 0 deletions