class ZipFileInfo

Library: Zip
Package: Zip
Header: Poco/Zip/ZipFileInfo.h


Stores a Zip directory entry of a file

Member Summary

Member Functions: createHeader, getCRC, getCompressedSize, getCompressionMethod, getDiskNumberStart, getExtraField, getFileComment, getFileName, getFileType, getHeaderSize, getHostSystem, getRelativeOffsetOfLocalHeader, getRequiredVersion, getUncompressedSize, getVersionMadeBy, hasExtraField, isDirectory, isEncrypted, isFile, lastModifiedAt, setOffset



    const ZipLocalFileHeader & header

Creates a ZipFileInfo from a ZipLocalFileHeader


    std::istream & in,
    bool assumeHeaderRead

Creates the ZipFileInfo by parsing the input stream. If assumeHeaderRead is true we assume that the first 4 bytes were already read outside.




Destroys the ZipFileInfo.

Member Functions


std::string createHeader() const;

getCRC inline

Poco::UInt32 getCRC() const;

getCompressedSize inline

Poco::UInt32 getCompressedSize() const;

getCompressionMethod inline

ZipCommon::CompressionMethod getCompressionMethod() const;

getDiskNumberStart inline

Poco::UInt16 getDiskNumberStart() const;

The number of the disk on which this file begins (multidisk archives)

getExtraField inline

const std::string & getExtraField() const;

getFileComment inline

const std::string & getFileComment() const;

getFileName inline

const std::string & getFileName() const;

getFileType inline

ZipCommon::FileType getFileType() const;

Binary or ASCII file?

getHeaderSize inline

Poco::UInt32 getHeaderSize() const;

Returns the total size of the header including filename + other additional fields

getHostSystem inline

ZipCommon::HostSystem getHostSystem() const;

getRelativeOffsetOfLocalHeader inline

Poco::UInt32 getRelativeOffsetOfLocalHeader() const;

Where on the disk starts the localheader. Combined with the disk number gives the exact location of the header

getRequiredVersion inline

void getRequiredVersion(
    int & major,
    int & minor

The minimum version required to extract the data

getUncompressedSize inline

Poco::UInt32 getUncompressedSize() const;

getVersionMadeBy inline

void getVersionMadeBy(
    int & major,
    int & minor

The ZIP version used to create the file

hasExtraField inline

bool hasExtraField() const;

isDirectory inline

bool isDirectory() const;

isEncrypted inline

bool isEncrypted() const;

isFile inline

bool isFile() const;

lastModifiedAt inline

const Poco::DateTime & lastModifiedAt() const;

setOffset inline

void setOffset(
    Poco::UInt32 val


HEADER static

static const char HEADER[ZipCommon::HEADER_SIZE];