jdk/src/share/classes/java/util/zip/package.html
author sherman
Thu, 16 Apr 2009 21:00:42 -0700
changeset 2592 ef26f663a2ba
parent 2438 21c111b51aa8
child 5506 202f599c92aa
child 5604 d5b97d8361d0
permissions -rw-r--r--
4244499: ZipEntry() does not convert filenames from Unicode to platform 4532049: IllegalArgumentException in ZipInputStream while reading unicode file 5030283: Incorrect implementation of UTF-8 in zip package 4700978: ZipFile can't treat Japanese name in a zipfile properly 4980042: Cannot use Surrogates in zip file metadata like filenames 4820807: java.util.zip.ZipInputStream cannot extract files with Chinese chars in name Summary: Add new constructors for zip classes to support non-UTF-8 encoded names/comments in ZIP file Reviewed-by: alanb, martin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
<head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
<!--
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
Copyright 1998-2002 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
</head>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
<body bgcolor="white">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
Provides classes for reading and writing the standard ZIP and GZIP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
file formats.  Also includes classes for compressing and decompressing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
data using the DEFLATE compression algorithm, which is used by the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
ZIP and GZIP file formats. Additionally, there are utility classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
for computing the CRC-32 and Adler-32 checksums of arbitrary
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
input streams.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
<h2>Package Specification</h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
<ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
  <li><a href="ftp://ftp.uu.net/pub/archiving/zip/doc/appnote-970311-iz.zip">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
      Info-ZIP Application Note 970311
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
      </a> - a detailed description of the Info-ZIP format upon which
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
      the <code>java.util.zip</code> classes are based.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
<p>
2438
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    49
  <a name="zip64">
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    50
  <li>An implementation may optionally support the ZIP64(tm) format extensions
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    51
      defined by the 
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    52
      <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    53
      PKWARE ZIP File Format Specification</a>. The ZIP64(tm) format extensions
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    54
      are used to overcome the size limitations of the original ZIP format.
21c111b51aa8 4681995: Add support for large (> 4GB) zip/jar files
sherman
parents: 2
diff changeset
    55
<p>
2592
ef26f663a2ba 4244499: ZipEntry() does not convert filenames from Unicode to platform
sherman
parents: 2438
diff changeset
    56
  <a name="lang_encoding">
ef26f663a2ba 4244499: ZipEntry() does not convert filenames from Unicode to platform
sherman
parents: 2438
diff changeset
    57
  <li>APPENDIX D of <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">
ef26f663a2ba 4244499: ZipEntry() does not convert filenames from Unicode to platform
sherman
parents: 2438
diff changeset
    58
      PKWARE ZIP File Format Specification</a> - Language Encoding Flag (EFS) to
ef26f663a2ba 4244499: ZipEntry() does not convert filenames from Unicode to platform
sherman
parents: 2438
diff changeset
    59
      encode ZIP entry filename and comment fields using UTF-8.
ef26f663a2ba 4244499: ZipEntry() does not convert filenames from Unicode to platform
sherman
parents: 2438
diff changeset
    60
<p>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
  <li><a href="http://www.isi.edu/in-notes/rfc1950.txt">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
      ZLIB Compressed Data Format Specification version 3.3</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
      &nbsp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
      <a href="http://www.isi.edu/in-notes/rfc1950.ps">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
      (PostScript)</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
      (RFC 1950)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
  <li><a href="http://www.isi.edu/in-notes/rfc1951.txt">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
      DEFLATE Compressed Data Format Specification version 1.3</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
      &nbsp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
      <a href="http://www.isi.edu/in-notes/rfc1951.ps">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
      (PostScript)</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
      (RFC 1951)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
  <li><a href="http://www.isi.edu/in-notes/rfc1952.txt">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
      GZIP file format specification version 4.3</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
      &nbsp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
      <a href="http://www.isi.edu/in-notes/rfc1952.ps">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
      (PostScript)</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
      (RFC 1952)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
  <li>CRC-32 checksum is described in RFC 1952 (above)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
  <li>Adler-32 checksum is described in RFC 1950 (above)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
</ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
<!--
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
<h2>Related Documentation</h2>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
For overviews, tutorials, examples, guides, and tool documentation, please see:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
<ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
  <li><a href="">##### REFER TO NON-SPEC DOCUMENTATION HERE #####</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
</ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
@since JDK1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
</body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
</html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101