To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Adds entries to a zip file being written by exportToZip. An instance is created per call to exportToZip and passed to its callback; it is only valid for the duration of that callback.
Group: Builders
Methods
add(ContentInfo contentInfo)
Returns: void
Adds a zip entry using the file name and data from the given content info.
| Parameter | Description |
|---|---|
contentInfo | the content to add, providing the entry's file name and data |
add(String fileName, InputStream dataIn)
Returns: void
Adds a zip entry with the given file name, copying all of the given stream's content into it.
| Parameter | Description |
|---|---|
fileName | the name to give the zip entry |
dataIn | the content to write into the entry |