portalpack.portlets.genericportlets/src/main/java/org/netbeans/modules/portalpack/portlets/genericportlets/core/util/JarUtils.java
/**
    * <P>This function will create a Jar archive containing the src
    * file/directory.  The archive will be written to the specified
    * OutputStream.  Directories are processed recursively, applying the
    * specified filter if it exists.
    *
    * <P>This is a shortcut for<br>
    * <code>jar(out, src, filter, null, null);</code></P>
    *
    * @param out The output stream to which the generated Jar archive is
    *        written.
    * @param src The file or directory to jar up.  Directories will be
    *        processed recursively.
    * @param filter The filter to use while processing directories.  Only
    *        those files matching will be included in the jar archive.  If
    *        null, then all files are included.
    */
This function will create a Jar archive containing the src
file/directory.  The archive will be written to the specified
OutputStream.  Directories are processed recursively, applying the
specified filter if it exists.

This is a shortcut for
jar(out, src, filter, null, null);

@param out The output stream to which the generated Jar archive is
written.
@param src The file or directory to jar up.  Directories will be
processed recursively.
@param filter The filter to use while processing directories.  Only
those files matching will be included in the jar archive.  If
null, then all files are included.
This function will create a Jar archive containing the src file / directory . The archive will be written to the specified OutputStream . Directories are processed recursively applying the specified filter if it exists . This is a shortcut for jar ( out src filter null null ) ; @param out The output stream to which the generated Jar archive is written . @param src The file or directory to jar up . Directories will be processed recursively . @param filter The filter to use while processing directories . Only those files matching will be included in the jar archive . If null then all files are included .
public static void jar(OutputStream out, File[] src, FileFilter filter)
      throws IOException
   {
      jar(out, src, filter, null, null);
   }
public static void jar ( OutputStream out , File [ ] src , FileFilter filter ) throws IOException { jar ( out , src , filter , null , null ) ; }
<P>This function will create a Jar archive containing the src
 file/directory.
<P > This function will create a Jar archive containing the src file / directory .