com.ebmwebsourcing.easycommons.io
Class ZipHelper

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.io.ZipHelper

public class ZipHelper
extends java.lang.Object

Author:
Marc Jambert - EBM WebSourcing

Constructor Summary
ZipHelper()
           
 
Method Summary
static void extractEntriesFromArchive(java.util.zip.ZipFile archive, java.lang.String entryNamePrefix, java.io.File destDir)
          Extract all the archive entries with a name starting with the specified name prefix to the specified destination directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipHelper

public ZipHelper()
Method Detail

extractEntriesFromArchive

public static void extractEntriesFromArchive(java.util.zip.ZipFile archive,
                                             java.lang.String entryNamePrefix,
                                             java.io.File destDir)
                                      throws java.io.IOException
Extract all the archive entries with a name starting with the specified name prefix to the specified destination directory

Parameters:
archive - the archive which contains the entries to extract
entryNamePrefix - the name prefix of entries to extract from the archive
absoluteDestDir - the directory to extract the archive entries
Throws:
java.io.IOException - if an I/O entry has occurred


Copyright © 2012 Petals Link. All Rights Reserved.