org.spiffyui.build
Class GzipListUtil

java.lang.Object
  extended by org.spiffyui.build.GzipListUtil

public final class GzipListUtil
extends java.lang.Object

This is a utility for GZIPing lists of files


Method Summary
static void zipFileList(java.util.List<java.io.File> files, java.io.File destinationDir)
           GZIP the specified list of files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

zipFileList

public static void zipFileList(java.util.List<java.io.File> files,
                               java.io.File destinationDir)
                        throws java.io.IOException

GZIP the specified list of files.

Many web servers will send GZIP versions of static files to browsers which support it. This method will GZIP lists of files so they can be served to those browsers.

Parameters:
files - the files to GZIP. Each file is GZIPed separately with the same file name and a .gz extension.
destinationDir - the destination directory to write the list of zipped files
Throws:
java.io.IOException - if there is a problem creating the zip files