Library: Zip
Package: Zip
Header: Poco/Zip/ZipUtil.h
A utility class used for parsing header information inside of zip files
Member Functions: fakeZLibInitString, get16BitValue, get32BitValue, parseDateTime, set16BitValue, set32BitValue, setDateTime, sync, validZipEntryFileName, verifyZipEntryFileName
~ZipUtil();
static std::string fakeZLibInitString(
ZipCommon::CompressionLevel cl
);
static Poco::UInt16 get16BitValue(
const char * pVal,
const Poco::UInt32 pos
);
static Poco::UInt32 get32BitValue(
const char * pVal,
const Poco::UInt32 pos
);
static Poco::DateTime parseDateTime(
const char * pVal,
const Poco::UInt32 timePos,
const Poco::UInt32 datePos
);
static void set16BitValue(
const Poco::UInt16 val,
char * pVal,
const Poco::UInt32 pos
);
static void set32BitValue(
const Poco::UInt32 val,
char * pVal,
const Poco::UInt32 pos
);
static void setDateTime(
const Poco::DateTime & dt,
char * pVal,
const Poco::UInt32 timePos,
const Poco::UInt32 datePos
);
static void sync(
std::istream & in
);
Searches the next valid header in the input stream, stops right before it
static std::string validZipEntryFileName(
const Poco::Path & entry
);
static void verifyZipEntryFileName(
const std::string & zipPath
);
Verifies that the name of the ZipEntry is a valid path