helma.Zip

Object
   |
   +--helma.Zip


Instances of this class represent a single zip archive and provide various methods for extracting entries or manipulating the contents of the archive.
Defined in Zip.js

Author: Robert Gaggl



Constructor Summary
helma.Zip(<helma.File|java.io.File|String> file)
            Constructs a new helma.Zip instance
 
Methods Summary
 void add(<helma.File|java.io.File|String> f, <Number> level, <String> pathPrefix)
           Adds a single file or a whole directory (recursive!) to the zip archive
 void addData(<ByteArray> buf, <String> name, <Number> level)
           Adds a new entry to the zip file.
 void close()
           Closes the zip archive.
 helma.Zip.Entry extract(<String> name, <String> destPath)
           Extracts a single file from the zip archive represented by this helma.Zip instance.
 helma.Zip.Content extractAll(<String> destPath)
           Extracts all files within the zip archive represented by this helma.Zip instance.
 ByteArray getData()
           Returns the binary data of the zip archive.
 helma.Zip.Content list()
           Returns an array containing the entries of the archive represented by this helma.Zip instance.
 void save(<String> dest)
           Saves the archive.
<static>  helma.Zip.Content extractData(<ByteArray> zipData)
           Extracts all files in the zip archive data passed as argument and returns them.

Constructor Detail

helma.Zip

helma.Zip(<helma.File|java.io.File|String> file)

Method Detail

add

void add(<helma.File|java.io.File|String> f, <Number> level, <String> pathPrefix)

addData

void addData(<ByteArray> buf, <String> name, <Number> level)

close

void close()

extract

helma.Zip.Entry extract(<String> name, <String> destPath)

extractAll

helma.Zip.Content extractAll(<String> destPath)

getData

ByteArray getData()

list

helma.Zip.Content list()

save

void save(<String> dest)

extractData

<static> helma.Zip.Content extractData(<ByteArray> zipData)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007