1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxZlibInputStream
}}\label{wxzlibinputstream
}
6 This stream uncompresses all data read from it. It uses the "filtered"
7 stream to get new compressed data.
9 The stream is not seekable,
\helpref{SeekI()
}{wxinputstreamseeki
} returns
10 {\it wxInvalidOffset
}. Also
\helpref{GetSize()
}{wxstreambasegetsize
} is
11 not supported, it always returns $
0$.
13 \wxheading{Derived from
}
15 \helpref{wxFilterInputStream
}{wxfilterinputstream
}
17 \wxheading{Include files
}
23 \helpref{wxInputStream
}{wxinputstream
},
24 \helpref{wxZlibOutputStream
}{wxzliboutputstream
}.
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxZlibInputStream::wxZlibInputStream
}
30 \func{}{wxZlibInputStream
}{\param{wxInputStream\&
}{ stream
},
\param{int
}{ flags =
0}}
32 {\it flags
} should be omitted for normal usage. The flag
{\it wxZLIB
\_NO_HEADER}
33 is needed when wxZlibInputStream is used as an 'inflate' decompressor for gzip
36 {\it wxZLIB
\_NO_HEADER} is currently the only flag:
41 wxZLIB_NO_HEADER =
1 // required for use in Gzip and Zip files
46 % -----------------------------------------------------------------------------
48 % -----------------------------------------------------------------------------
49 \section{\class{wxZlibOutputStream
}}\label{wxzliboutputstream
}
51 This stream compresses all data written to it, and passes the compressed data
52 to the "filtered" stream.
54 The stream is not seekable,
\helpref{SeekO()
}{wxoutputstreamseeko
} returns
55 {\it wxInvalidOffset
}.
57 \wxheading{Derived from
}
59 \helpref{wxFilterOutputStream
}{wxfilteroutputstream
}
61 \wxheading{Include files
}
67 \helpref{wxOutputStream
}{wxoutputstream
},
68 \helpref{wxZlibInputStream
}{wxzlibinputstream
}
71 \latexignore{\rtfignore{\wxheading{Members
}}}
73 \membersection{wxZlibOutputStream::wxZlibOutputStream
}
75 \func{}{wxZlibOutputStream
}{\param{wxOutputStream\&
}{ stream
},
\param{int
}{ level = -
1},
\param{int
}{ flags =
0}}
77 Creates a new write-only compressed stream.
{\it level
} means level of
78 compression. It is number between
0 and
9 (including these values) where
79 0 means no compression and
9 best but slowest compression. -
1 is default
80 value (currently equivalent to
6).
82 {\it flags
} should be omitted for normal usage. The flag
{\it wxZLIB
\_NO_HEADER}
83 suppresses the generation of the zlib header and checksum, and is required
84 when wxZlibOutputStream is used as a 'deflate' compressor for gzip or zip files.
86 The following symbols can be use for the compression level and flags:
91 wxZ_DEFAULT_COMPRESSION = -
1,
92 wxZ_NO_COMPRESSION =
0,
94 wxZ_BEST_COMPRESSION =
9
99 wxZLIB_NO_HEADER =
1 // required for use in Gzip and Zip files