fnug.resource
Class CssCompressor
java.lang.Object
fnug.resource.CssCompressor
- All Implemented Interfaces:
- Compressor
public class CssCompressor
- extends Object
- implements Compressor
Css variant of the compressor. Uses a modified version of the YUICompressor that is included in the package.
- Author:
- Martin Algesten
Method Summary |
byte[] |
compress(byte[] input)
Compresses the given input of bytes. |
String |
name()
Returns what type of compressor this is. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CssCompressor
public CssCompressor()
name
public String name()
- Returns what type of compressor this is. "javascript" or "css".
- Specified by:
name
in interface Compressor
compress
public byte[] compress(byte[] input)
- Compresses the given input of bytes.
- Specified by:
compress
in interface Compressor
- Parameters:
input
- bytes to compress
- Returns:
- the compressed bytes.
Copyright © 2012. All Rights Reserved.