org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt.compress
Class JSCompressorProxy

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt.compress.JSCompressorProxy
All Implemented Interfaces:
JSCompressor

public class JSCompressorProxy
extends Object
implements JSCompressor

Author:
ndeloof

Field Summary
 
Fields inherited from interface org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt.compress.JSCompressor
JAVASCRIPT_1_1, JAVASCRIPT_1_2, JAVASCRIPT_1_3, MAX, NONE
 
Constructor Summary
JSCompressorProxy(Object compressor)
           
 
Method Summary
 void compress(File input, File output, int level, int language)
          Compress the input script file into the output file (may be same).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSCompressorProxy

public JSCompressorProxy(Object compressor)
                  throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Method Detail

compress

public void compress(File input,
                     File output,
                     int level,
                     int language)
              throws CompressionException
Description copied from interface: JSCompressor
Compress the input script file into the output file (may be same).

Specified by:
compress in interface JSCompressor
Parameters:
input - source to get compressed
output - compressed script
level - optimization level from 0 to 9. May have various signification dependending on the compressor, from beeing ignored to some fine tweaking the output.
language - version of javascript to be used ("130" for JS 1.3), as defined by Mozilla Rhino engine
Throws:
CompressionException - any error during compression


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.