com.github.wuic.engine.yuicompressor
Class YuiCompressorCssEngine

java.lang.Object
  extended by com.github.wuic.engine.Engine
      extended by com.github.wuic.engine.NodeEngine
          extended by com.github.wuic.engine.core.AbstractCompressorEngine
              extended by com.github.wuic.engine.yuicompressor.YuiCompressorCssEngine
All Implemented Interfaces:
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

Constructor Summary
YuiCompressorCssEngine(Boolean compress, String cs, Integer lbp)
           Builds a new instance.
 
Method Summary
protected  void compress(InputStream source, OutputStream target)
          
 com.github.wuic.engine.EngineType getEngineType()
          
 List<com.github.wuic.NutType> getNutTypes()
          
 
Methods inherited from class com.github.wuic.engine.core.AbstractCompressorEngine
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
 

Constructor Detail

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 not
cs - the char set
lbp - the line break position
Method Detail

compress

protected void compress(InputStream source,
                        OutputStream target)
                 throws com.github.wuic.exception.wrapper.StreamException

Specified by:
compress in class com.github.wuic.engine.core.AbstractCompressorEngine
Throws:
com.github.wuic.exception.wrapper.StreamException

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.