| org.directwebremoting.extend.Compressor
All known Subclasses: org.directwebremoting.impl.YahooJSCompressor, org.directwebremoting.impl.NullCompressor, org.directwebremoting.impl.LegacyCompressor,
Compressor | public interface Compressor (Code) | | An interface to the various methods of compressing web resources.
This primarily means JavaScript, but could in theory extend to other
resources like CSS, HTML, etc.
author: David Marginian [david at butterdev dot com] author: Joe Walker [joe at getahead dot ltd dot uk] |
Method Summary | |
public String | compressJavaScript(String script) Compress a JavaScript file to a smaller version of the original
Parameters: script - The script to compress The compressed script throws: Exception - The implementations of this interface are all likely tohave different things they can throw. |
compressJavaScript | public String compressJavaScript(String script) throws Exception(Code) | | Compress a JavaScript file to a smaller version of the original
Parameters: script - The script to compress The compressed script throws: Exception - The implementations of this interface are all likely tohave different things they can throw. We are going to catch Exceptionanyway because we can continue (by using uncompressed scripts) so whyforce implementors to nest to another exception type when we can just letthem use the original exception? |
|
|