org.codehaus.mojo.javascript.compress
Class YahooUICompressor
java.lang.Object
org.codehaus.mojo.javascript.compress.YahooUICompressor
- All Implemented Interfaces:
- JSCompressor
public class YahooUICompressor
- extends java.lang.Object
- implements JSCompressor
A JS compressor that uses Dojo modified Rhino engine to compress the script.
The resulting compressed-js is garanteed to be functionaly equivalent as this
is the internal view of the rhino context.
- Author:
- nicolas De Loof
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YahooUICompressor
public YahooUICompressor()
setLogger
public void setLogger(JSCompressorLogger logger)
throws CompressionException
- Set a the JSCompressorLogger implementation that will receive logs
- Specified by:
setLogger in interface JSCompressor
- Parameters:
logger - a logger
- Throws:
CompressionException
getLogger
public JSCompressorLogger getLogger()
throws CompressionException
- Return current JSCompressorLogger used for logging
- Specified by:
getLogger in interface JSCompressor
- Returns:
- the current JSCompressorLogger used for logging
- Throws:
CompressionException
compress
public void compress(java.io.File input,
java.io.File compressed,
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 © 2011 SOFTEC sa. All Rights Reserved.