org.riotfamily.common.web.compressor
Class YUICssCompressor

java.lang.Object
  extended by org.riotfamily.common.web.compressor.YUICssCompressor
All Implemented Interfaces:
Compressor

public class YUICssCompressor
extends Object
implements Compressor

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
YUICssCompressor()
           
 
Method Summary
 void compress(Reader in, Writer out)
          Reads a cascading style sheet (CSS) from the given Reader and writes the compressed version to the specified Writer.
 void setEnabled(boolean enabled)
          Enables the Compressor.
 void setLinebreak(int linebreak)
          Sets the column number after which a line break should be inserted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YUICssCompressor

public YUICssCompressor()
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Enables the Compressor. Per default the compressor is enabled.

Parameters:
enabled - true to enabled, false to disable this compressor

setLinebreak

public void setLinebreak(int linebreak)
Sets the column number after which a line break should be inserted. Default is -1, which means that no breaks will be added.


compress

public void compress(Reader in,
                     Writer out)
              throws IOException
Reads a cascading style sheet (CSS) from the given Reader and writes the compressed version to the specified Writer.

Specified by:
compress in interface Compressor
Throws:
IOException