Class YUICssMinificationServiceImpl
java.lang.Object
org.broadleafcommerce.common.resource.service.YUICssMinificationServiceImpl
- All Implemented Interfaces:
CssMinificationService
@Service("blCssMinificationService")
public class YUICssMinificationServiceImpl
extends Object
implements CssMinificationService
CSS minification service implemented using the YUICompressor library
- Author:
- Jay Aisenbrey (cja769)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
YUICssMinificationServiceImpl
public YUICssMinificationServiceImpl()
-
-
Method Details
-
minifyCss
public void minifyCss(String filename, Reader reader, Writer writer) throws ResourceMinificationException Description copied from interface:CssMinificationService
Minfies the file in "reader" and writes the minified version to "writer"- Specified by:
minifyCss
in interfaceCssMinificationService
- Parameters:
filename
- Name of the file to be minifiedreader
- The original filewriter
- The writer that the minified version of the file in "reader" will be written to- Throws:
ResourceMinificationException
- Failure to successfully minify the bytes in "reader"
-