com.github.wuic.engine.yuicompressor
Class YuiCompressorCssEngine
java.lang.Object
com.github.wuic.engine.Engine
com.github.wuic.engine.NodeEngine
com.github.wuic.engine.core.AbstractCompressorEngine
com.github.wuic.engine.yuicompressor.YuiCompressorCssEngine
- All Implemented Interfaces:
- com.github.wuic.util.Pipe.Transformer<com.github.wuic.nut.ConvertibleNut>, Comparable<com.github.wuic.engine.Engine>
@EngineService(injectDefaultToWorkflow=true)
public class YuiCompressorCssEngine
- extends com.github.wuic.engine.core.AbstractCompressorEngine
This class can compress CSS files using the YUI compressor library.
- Since:
- 0.1.0
- Version:
- 1.6
- Author:
- Guillaume DROUET
| Methods inherited from class com.github.wuic.engine.core.AbstractCompressorEngine |
canAggregateTransformedStream, internalParse, works |
| Methods inherited from class com.github.wuic.engine.NodeEngine |
chain, getNext, getPrevious, parse, setNext |
| Methods inherited from class com.github.wuic.engine.Engine |
compareTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YuiCompressorCssEngine
@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.
- Parameters:
compress - activate compression or notcs - the char setlbp - the line break position
transform
public void transform(InputStream source,
OutputStream target,
com.github.wuic.nut.ConvertibleNut convertibleNut)
throws IOException
-
- Throws:
IOException
getNutTypes
public List<com.github.wuic.NutType> getNutTypes()
-
- Specified by:
getNutTypes in class com.github.wuic.engine.NodeEngine
getEngineType
public com.github.wuic.engine.EngineType getEngineType()
-
- Specified by:
getEngineType in class com.github.wuic.engine.Engine
Copyright © 2012-2014. All Rights Reserved.