org.glassfish.fighterfish.test.util
Class ZipUtil

java.lang.Object
  extended by org.glassfish.fighterfish.test.util.ZipUtil

public class ZipUtil
extends java.lang.Object

A simple utility to extract a zip input stream. This is used to install GlassFish when user does not have an installation.

Author:
sanjeeb.sahoo@oracle.com

Constructor Summary
ZipUtil()
           
 
Method Summary
static void explode(java.net.URI in, java.io.File out)
           
static void extractZip(java.util.zip.ZipInputStream zis, java.io.File destDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipUtil

public ZipUtil()
Method Detail

explode

public static void explode(java.net.URI in,
                           java.io.File out)
                    throws java.lang.Exception
Throws:
java.lang.Exception

extractZip

public static void extractZip(java.util.zip.ZipInputStream zis,
                              java.io.File destDir)
                       throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013. All Rights Reserved.