Library: Zip
Package: Zip
Header: Poco/Zip/ZipFileInfo.h
Stores a Zip directory entry of a file
Member Functions: createHeader, getCRC, getCompressedSize, getCompressionMethod, getDiskNumberStart, getExtraField, getFileComment, getFileName, getFileType, getHeaderSize, getHostSystem, getRelativeOffsetOfLocalHeader, getRequiredVersion, getUncompressedSize, getVersionMadeBy, hasExtraField, isDirectory, isEncrypted, isFile, lastModifiedAt, setOffset
ZipFileInfo(
    const ZipLocalFileHeader & header
);
Creates a ZipFileInfo from a ZipLocalFileHeader
ZipFileInfo(
    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.
~ZipFileInfo();
Destroys the ZipFileInfo.
std::string createHeader() const;
 
 Poco::UInt32 getCRC() const;
 
 Poco::UInt32 getCompressedSize() const;
 
 ZipCommon::CompressionMethod getCompressionMethod() const;
 
 Poco::UInt16 getDiskNumberStart() const;
The number of the disk on which this file begins (multidisk archives)
 
 const std::string & getExtraField() const;
 
 const std::string & getFileComment() const;
 
 const std::string & getFileName() const;
 
 ZipCommon::FileType getFileType() const;
Binary or ASCII file?
 
 Poco::UInt32 getHeaderSize() const;
Returns the total size of the header including filename + other additional fields
 
 ZipCommon::HostSystem getHostSystem() const;
 
 Poco::UInt32 getRelativeOffsetOfLocalHeader() const;
Where on the disk starts the localheader. Combined with the disk number gives the exact location of the header
 
 void getRequiredVersion(
    int & major,
    int & minor
);
The minimum version required to extract the data
 
 Poco::UInt32 getUncompressedSize() const;
 
 void getVersionMadeBy(
    int & major,
    int & minor
);
The ZIP version used to create the file
 
 bool hasExtraField() const;
 
 bool isDirectory() const;
 
 bool isEncrypted() const;
 
 bool isFile() const;
 
 const Poco::DateTime & lastModifiedAt() const;
 
 void setOffset(
    Poco::UInt32 val
);
 
 static const char HEADER[ZipCommon::HEADER_SIZE];