aboutsummaryrefslogtreecommitdiff
path: root/FAQ
diff options
context:
space:
mode:
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ14
1 files changed, 11 insertions, 3 deletions
diff --git a/FAQ b/FAQ
index c87759c..e9bc6fc 100644
--- a/FAQ
+++ b/FAQ
@@ -122,8 +122,16 @@ The lastest zlib FAQ is at http://www.gzip.org/zlib/zlib_faq.html
122 122
12318. Well that's nice, but how do I make a gzip file in memory? 12318. Well that's nice, but how do I make a gzip file in memory?
124 124
125 Read RFC 1952 for the gzip header and trailer format, and roll your own 125 You can request that deflate write the gzip format instead of the zlib
126 gzip formatted data using raw deflate and crc32(). 126 format using deflateInit2(). You can also request that inflate decode
127 the gzip format using inflateInit2(). Read zlib.h for more details.
128
129 Note that you cannot specify special gzip header contents (e.g. a file
130 name or modification date), nor will inflate tell you what was in the
131 gzip header. If you need to customize the header or see what's in it,
132 you can use the raw deflate and inflate operations and the crc32()
133 function and roll your own gzip encoding and decoding. Read the gzip
134 RFC 1952 for details of the header and trailer format.
127 135
12819. Is zlib thread-safe? 13619. Is zlib thread-safe?
129 137
@@ -253,7 +261,7 @@ The lastest zlib FAQ is at http://www.gzip.org/zlib/zlib_faq.html
25332. Is there a Java version of zlib? 26132. Is there a Java version of zlib?
254 262
255 Probably what you want is to use zlib in Java. zlib is already included 263 Probably what you want is to use zlib in Java. zlib is already included
256 as part of the Java SDK in the java.util.zip class. If you really want 264 as part of the Java SDK in the java.util.zip package. If you really want
257 a version of zlib written in the Java language, look on the zlib home 265 a version of zlib written in the Java language, look on the zlib home
258 page for links: http://www.zlib.org/ 266 page for links: http://www.zlib.org/
259 267