@EngineService(injectDefaultToWorkflow=true)
public class YuiCompressorCssEngine
extends com.github.wuic.engine.core.AbstractCompressorEngine
This class can compress CSS files using the YUI compressor library.
| Constructor and Description |
|---|
YuiCompressorCssEngine(Boolean compress,
String cs,
Integer lbp)
Builds 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 YuiCompressorCssEngine(@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)
Builds a new instance.
compress - activate compression or notcs - the char setlbp - the line break positionpublic 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.