ru.goodidea.df.util
Class JarMaker

java.lang.Object
  extended by ru.goodidea.df.util.JarMaker

public class JarMaker
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
Konstantin Pupkov

Constructor Summary
JarMaker()
           
 
Method Summary
 void addToArchive(java.io.File file, java.lang.String filepath, java.lang.String newFileEntryName)
          This method adds a new file to an existing zip file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarMaker

public JarMaker()
Method Detail

addToArchive

public void addToArchive(java.io.File file,
                         java.lang.String filepath,
                         java.lang.String newFileEntryName)
                  throws java.io.IOException
This method adds a new file to an existing zip file. It * includes all the zipped entries previously written.

Parameters:
file - The old zip archive
filepath - The name of the file to be Added NOTE: This method will write a new file and data to an archive, to write an existing file, we must first read the data frm the file, then you could call this method.
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.