@EngineService(injectDefaultToWorkflow=true)
public class YuiCompressorJavascriptEngine
extends com.github.wuic.engine.core.AbstractCompressorEngine
This class can compress Javascript files using the YUI compressor library.
| Constructor and Description |
|---|
YuiCompressorJavascriptEngine(Boolean compress,
String cs,
Integer lbp,
Boolean disableOptim,
Boolean verb,
Boolean keepSemiColons,
Boolean obfuscate)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
com.github.wuic.engine.EngineType |
getEngineType() |
List<com.github.wuic.NutType> |
getNutTypes() |
void |
transform(InputStream source,
OutputStream target,
com.github.wuic.nut.ConvertibleNut convertibleNut) |
canAggregateTransformedStream, internalParse, works@ConfigConstructor
public YuiCompressorJavascriptEngine(@BooleanConfigParam(propertyKey="c.g.wuic.engine.compress",defaultValue=true)
Boolean compress,
@StringConfigParam(propertyKey="c.g.wuic.engine.charset",defaultValue="UTF-8")
String cs,
@IntegerConfigParam(propertyKey="c.g.wuic.engine.lineBreakPos",defaultValue=-1)
Integer lbp,
@BooleanConfigParam(propertyKey="c.g.wuic.engine.disableOptimizations",defaultValue=true)
Boolean disableOptim,
@BooleanConfigParam(propertyKey="c.g.wuic.engine.verbose",defaultValue=false)
Boolean verb,
@BooleanConfigParam(propertyKey="c.g.wuic.engine.preserveSemiColons",defaultValue=true)
Boolean keepSemiColons,
@BooleanConfigParam(propertyKey="c.g.wuic.engine.obfuscate",defaultValue=true)
Boolean obfuscate)
Creates a new instance.
compress - activate compression or notcs - charset of files to compresslbp - line break positiondisableOptim - disable micro optimizationsverb - be verbose when compressingkeepSemiColons - keep unnecessary semicolonsobfuscate - obfuscate the code or notpublic void transform(InputStream source, OutputStream target, com.github.wuic.nut.ConvertibleNut convertibleNut) throws IOException
IOExceptionpublic List<com.github.wuic.NutType> getNutTypes()
getNutTypes in class com.github.wuic.engine.NodeEnginepublic com.github.wuic.engine.EngineType getEngineType()
getEngineType in class com.github.wuic.engine.EngineCopyright © 2012-2015. All Rights Reserved.