zipios::GZIPOutputStream(3) Library Functions Manual zipios::GZIPOutputStream(3)NAME
zipios::GZIPOutputStream -
SYNOPSIS
#include <gzipoutputstream.h>
Public Member Functions
GZIPOutputStream (std::ostream &os)
GZIPOutputStream constructor.
GZIPOutputStream (const std::string &filename)
GZIPOutputStream constructor.
void setFilename (const string &filename)
void setComment (const string &comment)
void close ()
Calls finish and closes the stream.
void finish ()
Finishes the stream.
virtual ~GZIPOutputStream ()
Destructor.
Detailed Description
GZIPOutputStream is an ostream that writes the output to a gz file. The interface approximates the interface of the Java GZIPOutputStream.
Definition at line 17 of file gzipoutputstream.h.
Constructor & Destructor Documentation
zipios::GZIPOutputStream::GZIPOutputStream (std::ostream &os) [explicit]
GZIPOutputStream constructor. Parameters:
os ostream to which the compressed zip archive is written.
Definition at line 13 of file gzipoutputstream.cpp.
zipios::GZIPOutputStream::GZIPOutputStream (const std::string &filename) [explicit]
GZIPOutputStream constructor. filename to write the gzip archive to.
Definition at line 22 of file gzipoutputstream.cpp.
zipios::GZIPOutputStream::~GZIPOutputStream () [virtual]
Destructor.
Definition at line 51 of file gzipoutputstream.cpp.
Member Function Documentation
void zipios::GZIPOutputStream::close ()
Calls finish and closes the stream.
Definition at line 39 of file gzipoutputstream.cpp.
void zipios::GZIPOutputStream::finish ()
Finishes the stream.
Definition at line 46 of file gzipoutputstream.cpp.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::GZIPOutputStream(3)
Check Out this Related Man Page
zipios::InflateInputStreambuf(3) Library Functions Manual zipios::InflateInputStreambuf(3)NAME
zipios::InflateInputStreambuf -
InflateInputStreambuf is an input stream filter, that inflates the input from the attached input stream.
SYNOPSIS
#include <inflateinputstreambuf.h>
Inherits zipios::FilterInputStreambuf.
Inherited by zipios::ZipInputStreambuf.
Public Member Functions
InflateInputStreambuf (streambuf *inbuf, int s_pos=-1, bool del_inbuf=false)
InflateInputStreambuf constructor.
bool reset (int stream_position=-1)
Resets the zlib stream and purges input and output buffers.
Protected Member Functions
virtual int underflow ()
Protected Attributes
const int _outvecsize
vector< char > _outvec
Detailed Description
InflateInputStreambuf is an input stream filter, that inflates the input from the attached input stream.
Deflation/Inflation is a compression/decompression method used in gzip and zip. The zlib library is used to perform the actual inflation,
this class only wraps the functionality in an input stream filter.
Definition at line 22 of file inflateinputstreambuf.h.
Constructor & Destructor Documentation
zipios::InflateInputStreambuf::InflateInputStreambuf (streambuf *inbuf, ints_pos = -1, booldel_inbuf = false) [explicit]
InflateInputStreambuf constructor. Parameters:
inbuf the streambuf to use for input.
s_pos a position to reset the inbuf to before reading. Specify -1 to read from the current position.
del_inbuf if true is specified inbuf will be deleted, when the InflateInputStreambuf is destructed.
Definition at line 18 of file inflateinputstreambuf.cpp.
Member Function Documentation
bool zipios::InflateInputStreambuf::reset (intstream_position = -1)
Resets the zlib stream and purges input and output buffers. repositions the input streambuf at stream_position.
Parameters:
stream_position a position to reset the inbuf to before reading. Specify -1 to read from the current position.
Definition at line 117 of file inflateinputstreambuf.cpp.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::InflateInputStreambuf(3)