TubZipWriter

TubZipWriter

TubZipWriter Create zip archive. After finish working with archive creator must call freeNative() method to close file handel

Constructor

new TubZipWriter(fileName)

Arguments:
  1. fileName   name of zip archive file

Methods

addBuffer(fileName, byteCount, source)

Add byteCount bytes from source to archive as fleName
Arguments:
  1. fileName (String)  name of file inside archive
  2. byteCount (Number)  number of bytes to add starting from buffer position
  3. source (TubBuffer)

addFile(fileName)

Add specified file to archive
Arguments:
  1. fileName

freeNative()

Close writer