Prevent NPE. The static calculator example is now running fine
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
5 Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
6 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 This code is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License version 2 only, as
10 published by the Free Software Foundation. Oracle designates this
11 particular file as subject to the "Classpath" exception as provided
12 by Oracle in the LICENSE file that accompanied this code.
14 This code is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 version 2 for more details (a copy is included in the LICENSE file that
18 accompanied this code).
20 You should have received a copy of the GNU General Public License version
21 2 along with this work; if not, write to the Free Software Foundation,
22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
25 or visit www.oracle.com if you need additional information or have any
30 <body bgcolor="white">
32 Provides classes for reading and writing the standard ZIP and GZIP
33 file formats. Also includes classes for compressing and decompressing
34 data using the DEFLATE compression algorithm, which is used by the
35 ZIP and GZIP file formats. Additionally, there are utility classes
36 for computing the CRC-32 and Adler-32 checksums of arbitrary
40 <h2>Package Specification</h2>
44 <li><a href="ftp://ftp.uu.net/pub/archiving/zip/doc/appnote-970311-iz.zip">
45 Info-ZIP Application Note 970311
46 </a> - a detailed description of the Info-ZIP format upon which
47 the <code>java.util.zip</code> classes are based.
50 <li>An implementation may optionally support the ZIP64(tm) format extensions
52 <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">
53 PKWARE ZIP File Format Specification</a>. The ZIP64(tm) format extensions
54 are used to overcome the size limitations of the original ZIP format.
56 <a name="lang_encoding">
57 <li>APPENDIX D of <a href="http://www.pkware.com/documents/casestudies/APPNOTE.TXT">
58 PKWARE ZIP File Format Specification</a> - Language Encoding Flag (EFS) to
59 encode ZIP entry filename and comment fields using UTF-8.
61 <li><a href="http://www.ietf.org/rfc/rfc1950.txt">
62 ZLIB Compressed Data Format Specification version 3.3</a>
64 <a href="http://www.ietf.org/rfc/rfc1950.txt.pdf">(pdf)</a>
67 <li><a href="http://www.ietf.org/rfc/rfc1951.txt">
68 DEFLATE Compressed Data Format Specification version 1.3</a>
70 <a href="http://www.ietf.org/rfc/rfc1951.txt.pdf">(pdf)</a>
73 <li><a href="http://www.ietf.org/rfc/rfc1952.txt">
74 GZIP file format specification version 4.3</a>
76 <a href="http://www.ietf.org/rfc/rfc1952.txt.pdf">(pdf)</a>
79 <li>CRC-32 checksum is described in RFC 1952 (above)
81 <li>Adler-32 checksum is described in RFC 1950 (above)
86 <h2>Related Documentation</h2>
88 For overviews, tutorials, examples, guides, and tool documentation, please see:
90 <li><a href="">##### REFER TO NON-SPEC DOCUMENTATION HERE #####</a>