de.hattrickorganizer.tools
Class ZipHelper

java.lang.Object
  extended by de.hattrickorganizer.tools.ZipHelper

public class ZipHelper
extends java.lang.Object


Constructor Summary
ZipHelper(java.io.File file)
           
ZipHelper(java.lang.String filename)
           
 
Method Summary
 void close()
           
 boolean extractFile(java.lang.String fileToExtract, java.lang.String destDir)
           
 java.io.InputStream getFile(java.lang.String fileToExtract)
           
 java.util.Enumeration getFileList()
           
 boolean unzip(java.lang.String destDir)
          unzip a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipHelper

public ZipHelper(java.lang.String filename)
          throws java.lang.Exception
Throws:
java.lang.Exception

ZipHelper

public ZipHelper(java.io.File file)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

extractFile

public boolean extractFile(java.lang.String fileToExtract,
                           java.lang.String destDir)

getFile

public java.io.InputStream getFile(java.lang.String fileToExtract)

close

public void close()

unzip

public boolean unzip(java.lang.String destDir)
unzip a file

Parameters:
tmpZipFile - TODO Missing Constructuor Parameter Documentation
destDir - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getFileList

public java.util.Enumeration getFileList()