com.xebialabs.deployit.plugin
Class Exploder

java.lang.Object
  extended by com.xebialabs.deployit.plugin.Exploder

public class Exploder
extends java.lang.Object


Constructor Summary
Exploder()
           
 
Method Summary
static void explode(com.google.common.io.InputSupplier<? extends java.io.InputStream> inputZip, java.io.File outputDirectory)
          Extracts a archive input stream.
N.B.: You should cleanup after yourself, the temp directory won't be automatically deleted after this call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exploder

public Exploder()
Method Detail

explode

public static void explode(com.google.common.io.InputSupplier<? extends java.io.InputStream> inputZip,
                           java.io.File outputDirectory)
                    throws java.io.IOException
Extracts a archive input stream.
N.B.: You should cleanup after yourself, the temp directory won't be automatically deleted after this call.

Parameters:
inputZip - the input stream with the archive.
outputDirectory - the folder where to extract the archive.
Throws:
java.io.IOException - if an I/O exception occured while extracting.