Main Page   Class Hierarchy   Compound List   File List   Compound Members  

zipios::ZipInputStream Class Reference

ZipInputStream is an istream that gets it's input from a zip file. More...

#include <zipinputstream.h>

Inheritance diagram for zipios::ZipInputStream

Inheritance graph

[legend]
List of all members.

Public Methods

 ZipInputStream ( istream &is, streampos pos = 0 )
 ZipInputStream constructor. More...

 ZipInputStream ( const string &filename, streampos pos = 0 )
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). More...

void close ()
 Closes the istream. More...

ConstEntryPointer getNextEntry ()
 Opens the next entry in the zip archive and returns a const pointer to a FileEntry object for the entry. More...

virtual ~ZipInputStream ()
 Destructor. More...


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.

Definition at line 11 of file zipinputstream.cpp.

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

Definition at line 21 of file zipinputstream.cpp.

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

Destructor.

Definition at line 51 of file zipinputstream.cpp.


Member Function Documentation

int zipios::ZipInputStream::available ( )
 

Definition at line 31 of file zipinputstream.cpp.

void zipios::ZipInputStream::close ( )
 

Closes the istream.

Definition at line 39 of file zipinputstream.cpp.

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 35 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.

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

Definition at line 46 of file zipinputstream.cpp.


The documentation for this class was generated from the following files:
Generated at Tue Aug 14 20:39:59 2001 for Zipios++ by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000