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.

ParameterDescription
contentInfothe 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.

ParameterDescription
fileNamethe name to give the zip entry
dataInthe content to write into the entry
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.