iText 8.0.2 API
|
Allows reading entries from a zip file. More...
Public Member Functions |
|
ZipFileReader (String archivePath) | |
Creates an instance for zip file reading. More... |
|
ISet< String > | GetFileNames () |
Get all file entries paths inside the reading zip file. More... |
|
Stream | ReadFromZip (String fileName) |
Read single file from zip. More... |
|
void | SetThresholdSize (int thresholdSize) |
Sets the maximum total uncompressed data size to prevent a Zip Bomb Attack. Default value is 1 GB (1000000000). More... |
|
void | SetThresholdEntries (int thresholdEntries) |
Sets the maximum number of file entries in the archive to prevent a Zip Bomb Attack. Default value is 10000. More... |
|
void | SetThresholdRatio (double thresholdRatio) |
Sets the maximum ratio between compressed and uncompressed data to prevent a Zip Bomb Attack. In general the data compression ratio for most of the legit archives is 1 to 3. Default value is 10. More... |
|
void | Dispose () |
Allows reading entries from a zip file.
|
inline |
Creates an instance for zip file reading.
archivePath | the path to the zip file to read |
IOException | if some I/O exception occurs |
|
inline |
Get all file entries paths inside the reading zip file.
IOException | if some I/O exception occurs |
|
inline |
Read single file from zip.
fileName | the file path inside zip to read |
IOException | if some I/O exception occurs |
|
inline |
Sets the maximum number of file entries in the archive to prevent a Zip Bomb Attack. Default value is 10000.
thresholdEntries | maximum number of file entries in the archive |
|
inline |
Sets the maximum ratio between compressed and uncompressed data to prevent a Zip Bomb Attack. In general the data compression ratio for most of the legit archives is 1 to 3. Default value is 10.
thresholdRatio | maximum ratio between compressed and uncompressed data |
|
inline |
Sets the maximum total uncompressed data size to prevent a Zip Bomb Attack. Default value is 1 GB (1000000000).
thresholdSize | the threshold for maximum total size of the uncompressed data |