org.codehaus.mojo.javascript.compress
Class JSMinCompressor

java.lang.Object
  extended by org.codehaus.mojo.javascript.compress.JSMinCompressor
All Implemented Interfaces:
JSCompressor

public class JSMinCompressor
extends java.lang.Object
implements JSCompressor

Use the Java version of the JSMin algorithm to compress a set of JS files. For simplicity, the JSMin code (one class) is included in the plugin.

Author:
nicolas De Loof
See Also:
http://www.crockford.com/javascript/jsmin.html

Field Summary
 
Fields inherited from interface org.codehaus.mojo.javascript.compress.JSCompressor
JAVASCRIPT_1_1, JAVASCRIPT_1_2, JAVASCRIPT_1_3, MAX, NONE
 
Constructor Summary
JSMinCompressor()
           
 
Method Summary
 void compress(java.io.File input, java.io.File output, int level, int language)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSMinCompressor

public JSMinCompressor()
Method Detail

compress

public void compress(java.io.File input,
                     java.io.File output,
                     int level,
                     int language)
              throws CompressionException

Specified by:
compress in interface JSCompressor
Throws:
CompressionException
See Also:
JSCompressor.compress(java.io.File, java.io.File, int, int)


Copyright © 2010. All Rights Reserved.