1999-02-06 08:32:46 -05:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxZlibInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
1999-02-10 17:44:53 -05:00
|
|
|
\section{\class{wxZlibInputStream}}\label{wxzlibinputstream}
|
1999-02-06 08:32:46 -05:00
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
This stream uncompresses all data read from it. It uses the "filtered"
|
|
|
|
stream to get new compressed data.
|
|
|
|
|
2003-09-26 16:07:22 -04:00
|
|
|
The stream is not seekable, \helpref{SeekI()}{wxinputstreamseeki} returns
|
|
|
|
{\it wxInvalidOffset}. Also \helpref{GetSize()}{wxstreambasegetsize} is
|
|
|
|
not supported, it always returns $0$.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFilterInputStream}{wxfilterinputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/zstream.h>
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2003-09-26 16:07:22 -04:00
|
|
|
\helpref{wxInputStream}{wxinputstream},
|
|
|
|
\helpref{wxZlibOutputStream}{wxzliboutputstream}.
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxZlibInputStream::wxZlibInputStream}
|
|
|
|
|
|
|
|
\func{}{wxZlibInputStream}{\param{wxInputStream\&}{ stream}, \param{int}{ flags = 0}}
|
|
|
|
|
|
|
|
{\it flags} should be omitted for normal usage. The flag {\it wxZLIB\_NO_HEADER}
|
|
|
|
is needed when wxZlibInputStream is used as an 'inflate' decompressor for gzip
|
|
|
|
or zip files.
|
|
|
|
|
|
|
|
{\it wxZLIB\_NO_HEADER} is currently the only flag:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
// Flags
|
|
|
|
enum {
|
|
|
|
wxZLIB_NO_HEADER = 1 // required for use in Gzip and Zip files
|
|
|
|
}
|
|
|
|
\end{verbatim}
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxZlibOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
1999-02-10 17:44:53 -05:00
|
|
|
\section{\class{wxZlibOutputStream}}\label{wxzliboutputstream}
|
1999-02-06 08:32:46 -05:00
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
This stream compresses all data written to it, and passes the compressed data
|
1999-11-04 12:49:21 -05:00
|
|
|
to the "filtered" stream.
|
1999-11-01 15:36:43 -05:00
|
|
|
|
2003-09-26 16:07:22 -04:00
|
|
|
The stream is not seekable, \helpref{SeekO()}{wxoutputstreamseeko} returns
|
|
|
|
{\it wxInvalidOffset}.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFilterOutputStream}{wxfilteroutputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/zstream.h>
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2003-09-26 16:07:22 -04:00
|
|
|
\helpref{wxOutputStream}{wxoutputstream},
|
|
|
|
\helpref{wxZlibInputStream}{wxzlibinputstream}
|
1999-02-06 08:32:46 -05:00
|
|
|
|
2000-03-03 17:52:17 -05:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxZlibOutputStream::wxZlibOutputStream}
|
|
|
|
|
2003-09-26 16:07:22 -04:00
|
|
|
\func{}{wxZlibOutputStream}{\param{wxOutputStream\&}{ stream}, \param{int}{ level = -1}, \param{int}{ flags = 0}}
|
2000-03-03 17:52:17 -05:00
|
|
|
|
|
|
|
Creates a new write-only compressed stream. {\it level} means level of
|
|
|
|
compression. It is number between 0 and 9 (including these values) where
|
|
|
|
0 means no compression and 9 best but slowest compression. -1 is default
|
|
|
|
value (currently equivalent to 6).
|
2003-09-26 16:07:22 -04:00
|
|
|
|
|
|
|
{\it flags} should be omitted for normal usage. The flag {\it wxZLIB\_NO_HEADER}
|
|
|
|
suppresses the generation of the zlib header and checksum, and is required
|
|
|
|
when wxZlibOutputStream is used as a 'deflate' compressor for gzip or zip files.
|
|
|
|
|
|
|
|
The following symbols can be use for the compression level and flags:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
// Compression level
|
|
|
|
enum {
|
|
|
|
wxZ_DEFAULT_COMPRESSION = -1,
|
|
|
|
wxZ_NO_COMPRESSION = 0,
|
|
|
|
wxZ_BEST_SPEED = 1,
|
|
|
|
wxZ_BEST_COMPRESSION = 9
|
|
|
|
}
|
|
|
|
|
|
|
|
// Flags
|
|
|
|
enum {
|
|
|
|
wxZLIB_NO_HEADER = 1 // required for use in Gzip and Zip files
|
|
|
|
}
|
|
|
|
\end{verbatim}
|
|
|
|
|