org.apache.geronimo.farm.deployment
Class ZipDirectoryPackager

java.lang.Object
  extended by org.apache.geronimo.farm.deployment.ZipDirectoryPackager
All Implemented Interfaces:
DirectoryPackager

public class ZipDirectoryPackager
extends java.lang.Object
implements DirectoryPackager

Version:
$Rev:$ $Date:$

Constructor Summary
ZipDirectoryPackager()
           
 
Method Summary
 java.io.File pack(java.io.File configurationDir)
           
 java.io.File unpack(java.io.File packedConfigurationDir)
           
 void unpack(java.io.File targetDir, java.io.File packedConfigurationDir)
           
protected  void zip(java.util.zip.ZipOutputStream zos, java.io.File configurationDir, java.io.File nestedFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipDirectoryPackager

public ZipDirectoryPackager()
Method Detail

pack

public java.io.File pack(java.io.File configurationDir)
                  throws java.io.IOException
Specified by:
pack in interface DirectoryPackager
Throws:
java.io.IOException

unpack

public java.io.File unpack(java.io.File packedConfigurationDir)
                    throws java.io.IOException
Specified by:
unpack in interface DirectoryPackager
Throws:
java.io.IOException

unpack

public void unpack(java.io.File targetDir,
                   java.io.File packedConfigurationDir)
            throws java.io.IOException
Specified by:
unpack in interface DirectoryPackager
Throws:
java.io.IOException

zip

protected void zip(java.util.zip.ZipOutputStream zos,
                   java.io.File configurationDir,
                   java.io.File nestedFile)
            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.