|
iText 9.7.0 API
|
Allows writing entries into a zip file. More...
Public Member Functions |
|
| ZipFileWriter (String archivePath) | |
| Creates an instance for zip file writing. More... |
|
| void | AddEntry (String fileName, FileInfo file) |
| Add file from disk into zip archive. More... |
|
| void | AddEntry (String fileName, Stream inputStream) |
| Add file into zip archive with data from stream. More... |
|
| void | AddJsonEntry (String fileName, Object objectToAdd) |
| Add file into zip archive with object serialized as JSON. More... |
|
| void | Dispose () |
Allows writing entries into a zip file.
|
inline |
Creates an instance for zip file writing.
| archivePath | the path to the zip file to write |
| IOException | if some I/O exception occurs |
|
inline |
Add file from disk into zip archive.
| fileName | the target name of the file inside zip after writing |
| file | the path to the file on disk to archive |
| IOException | if some I/O exception occurs |
|
inline |
Add file into zip archive with data from stream.
| fileName | the target name of the file inside zip after writing |
| inputStream | the input stream to archive |
| IOException | if some I/O exception occurs |
|
inline |
Add file into zip archive with object serialized as JSON.
| fileName | the target name of the file inside zip after writing |
| objectToAdd | the object to serialize as JSON |
| IOException | if some I/O exception occurs |