tl1.maxcom
Class ZipFileReader

java.lang.Object
  extended by tl1.maxcom.ZipFileReader

public class ZipFileReader
extends java.lang.Object

Classe pour gérer les fichiers compressés

Author:
Télécom Lille1

Constructor Summary
ZipFileReader()
           
 
Method Summary
static void extractTo(java.lang.String archive, java.lang.String file, java.lang.String destPath)
          Extraire un fichier
static java.util.ArrayList getFiles(java.lang.String archive)
          Lister les fichiers contenus dans le zip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileReader

public ZipFileReader()
Method Detail

getFiles

public static java.util.ArrayList getFiles(java.lang.String archive)
Lister les fichiers contenus dans le zip

Parameters:
archive - nom du fichier zip
Returns:
liste sous forme ['nom, 'taille', 'date']

extractTo

public static void extractTo(java.lang.String archive,
                             java.lang.String file,
                             java.lang.String destPath)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
Extraire un fichier

Parameters:
archive - fichier zip
file - nom du fichier à extraire
destPath - répertoire de destination du fichier
Throws:
java.io.FileNotFoundException
java.io.IOException