---
name: "zipios_ZipInputStreambuf"
section: "3"
platform: "linux"
package: "libzipios++-dev"
version: "0.1.5.9+cvs.2007.04.28-6"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/zipios_ZipInputStreambuf"
---

# zipios\_ZipInputStreambuf(3)

ZipInputStreambuf is a zip input streambuf filter.

## NAME

zipios::ZipInputStreambuf - **ZipInputStreambuf** is a zip input streambuf filter.

## SYNOPSIS

`#include <zipinputstreambuf.h>`

Inherits **zipios::InflateInputStreambuf**.

### Public Member Functions

**ZipInputStreambuf** (streambuf \*inbuf, int s\_pos=-1, bool del\_inbuf=false)\
 **ZipInputStreambuf** *constructor.*  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 streambuf.*  **ConstEntryPointer** **getNextEntry** ()\
 *Opens the next entry in the zip archive and returns a const pointer to a* **FileEntry** *object for the entry.*  virtual **~ZipInputStreambuf** ()\
 *Destructor.*

### Protected Member Functions

virtual int **underflow** ()\

### Additional Inherited Members

## Detailed Description

**ZipInputStreambuf** is a zip input streambuf filter.

Definition at line 18 of file zipinputstreambuf.h.

## Constructor & Destructor Documentation

### zipios::ZipInputStreambuf::ZipInputStreambuf (streambuf \* inbuf, int s\_pos = `-1`, bool del\_inbuf = `false`)` [explicit]`

**ZipInputStreambuf** 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 **ZipInputStreambuf** is destructed.

Definition at line 18 of file zipinputstreambuf.cpp.

### zipios::ZipInputStreambuf::~ZipInputStreambuf ()` [virtual]`

Destructor.

Definition at line 82 of file zipinputstreambuf.cpp.

## Member Function Documentation

### void zipios::ZipInputStreambuf::close ()

Closes the streambuf.

Definition at line 42 of file zipinputstreambuf.cpp.

### void zipios::ZipInputStreambuf::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 29 of file zipinputstreambuf.cpp.

### ConstEntryPointer zipios::ZipInputStreambuf::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 45 of file zipinputstreambuf.cpp.

## Author

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