Poster of Linux kernelThe best gift for a Linux geek
zipios::ZipInputStream

zipios::ZipInputStream

Section: C Library Functions (3) Updated: 7 Nov 2008
Local index Up
 

NAME

zipios::ZipInputStream -  

SYNOPSIS


#include <zipinputstream.h>

Inherits std::istream.

 

Public Member Functions


ZipInputStream (istream &is, streampos pos=0)
ZipInputStream constructor.
ZipInputStream (const string &filename, streampos pos=0)
ZipInputStream constructor.
int available ()

void closeEntry ()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one).
void close ()
Closes the istream.
ConstEntryPointer getNextEntry ()

virtual ~ZipInputStream ()
Destructor.  

Detailed Description


 ZipInputStream is an istream that gets it's input from a zip file. The interface approximates the interface of the Java ZipInputStream

Definition at line 20 of file zipinputstream.h.  

Constructor & Destructor Documentation

 

zipios::ZipInputStream::ZipInputStream (istream & is, streampos pos = 0) [explicit]

ZipInputStream constructor.

Parameters:

is istream from which the compressed zip archive can be read.
pos position to reposition the istream to before reading.

 

zipios::ZipInputStream::ZipInputStream (const string & filename, streampos pos = 0) [explicit]

ZipInputStream constructor.

filename of a valid zip file.

Parameters:

pos position to reposition the istream to before reading.

 

zipios::ZipInputStream::~ZipInputStream () [virtual]

Destructor.

Definition at line 53 of file zipinputstream.cpp.  

Member Function Documentation

 

void zipios::ZipInputStream::closeEntry ()

Closes the current entry, and positions the stream read pointer at the beginning of the next entry (if there is one).

Definition at line 37 of file zipinputstream.cpp.  

void zipios::ZipInputStream::close ()

Closes the istream.

Definition at line 41 of file zipinputstream.cpp.  

ConstEntryPointer zipios::ZipInputStream::getNextEntry ()


 Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry. For new instances this method has to be called once before you can read from the first entry. 

Returns:

a const FileEntry * containing information about the (now) current entry.

Definition at line 48 of file zipinputstream.cpp.

 

Author

Generated automatically by Doxygen for Zipios++ from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
Constructor & Destructor Documentation
zipios::ZipInputStream::ZipInputStream (istream & is, streampos pos = 0) [explicit]
zipios::ZipInputStream::ZipInputStream (const string & filename, streampos pos = 0) [explicit]
zipios::ZipInputStream::~ZipInputStream () [virtual]
Member Function Documentation
void zipios::ZipInputStream::closeEntry ()
void zipios::ZipInputStream::close ()
ConstEntryPointer zipios::ZipInputStream::getNextEntry ()
Author

This document was created by man2html, using the manual pages.
Time: 21:59:26 GMT, April 16, 2011