de.hattrickorganizer.prediction
Class ZipHelper

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

public class ZipHelper
extends java.lang.Object


Constructor Summary
ZipHelper(java.io.File file)
           
ZipHelper(java.lang.String zipFilename)
           
 
Method Summary
static void close()
           
 boolean extractFile(java.lang.String s, java.lang.String dir)
           
static java.io.InputStream getFile(java.lang.String s)
           
static java.util.Enumeration getFileList()
           
 boolean unzip(java.lang.String toDir)
           
 
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 zipFilename)
          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 final boolean extractFile(java.lang.String s,
                                 java.lang.String dir)

getFile

public static java.io.InputStream getFile(java.lang.String s)

close

public static void close()

unzip

public final boolean unzip(java.lang.String toDir)

getFileList

public static java.util.Enumeration getFileList()