src/main/java/org/jboss/util/file/JarUtils.java
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);
   }
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.  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.
@throws IOException
<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 .