org.loom.resources.compressor
Interface WebResourceCompressor
- All Known Implementing Classes:
- ClosureJavascriptCompressorAdapter, NullCompressor, YuiCssCompressorAdapter, YuiJavascriptCompressorAdapter
public interface WebResourceCompressor
A class that compresses a file (javascript or css), minifying and possibly obfuscating the code.
Method Summary |
java.lang.String |
compress(java.lang.String resourceName,
java.lang.String contents)
Compress the input contents. |
compress
java.lang.String compress(java.lang.String resourceName,
java.lang.String contents)
throws java.io.IOException,
SyntaxError
- Compress the input contents.
- Parameters:
contents
- the file contents to be compressed
- Returns:
- the compressed result
- Throws:
java.io.IOException
SyntaxError