Opotoc Posted December 13, 2010 Posted December 13, 2010 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
john renfrew Posted December 14, 2010 Posted December 14, 2010 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
Recommended Posts
This topic is 5105 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now