com.ptc.epm.commands.util
Class ZipFileHelper

java.lang.Object
  extended bycom.ptc.epm.commands.util.ZipFileHelper

public class ZipFileHelper
extends Object


Field Summary
private static int BUF_SIZE
           
(package private) static boolean SERVER
           
 
Constructor Summary
ZipFileHelper()
           
 
Method Summary
static void uncompressFile(BufferedInputStream zipStream, String fileName, boolean is_flat_dir)
           
static void uncompressFileFlat(BufferedInputStream zipStream, String fileName)
           
static String unZipFile(File zip_file, String fileName, boolean is_flat_dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

BUF_SIZE

private static final int BUF_SIZE
See Also:
Constant Field Values
Constructor Detail

ZipFileHelper

public ZipFileHelper()
Method Detail

unZipFile

public static String unZipFile(File zip_file,
                               String fileName,
                               boolean is_flat_dir)
                        throws WTException
Throws:
WTException

uncompressFile

public static void uncompressFile(BufferedInputStream zipStream,
                                  String fileName,
                                  boolean is_flat_dir)
                           throws IOException
Throws:
IOException

uncompressFileFlat

public static void uncompressFileFlat(BufferedInputStream zipStream,
                                      String fileName)
                               throws IOException
Throws:
IOException