December 13, 201015 yr Hey Guys, I'm looking for an UNzip function in Scriptmaster. I've searched the web for hours but wasn't able to find anything. Unzipping of single files would be fine for me. Best, Alexander
December 14, 201015 yr Hey Guys, I'm looking for an UNzip function in Scriptmaster. I've searched the web for hours but wasn't able to find anything. Unzipping of single files would be fine for me. Best, Alexander The Java core packages include java.util.zip, which is useful for creating and reading compressed files or archives in the ZIP and GZIP formats. ZIP files form the basis for the JAR file format, so it was natural to include classes for manipulating ZIP files as part of the standard Java APIs. This functionality is enormously useful, because it saves you the time of creating custom file archive formats for your applications. You can use the ZipFile class to read entries in a ZIP file. The entries are represented by instances of the ZipEntry class, which contains information such as the size, name, compression method, and timestamp of the entry. ZipFile.entries() will return the entries as an Enumeration which you can step through to access all of the entries. Once you have found an entry of interest, ZipFile.getInputStream(ZipEntry) will produce an InputStream, from which the archived entry can be read. (search engine of choice) for java unzip or http://tinyurl.com/395kz22
Create an account or sign in to comment