|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.ShrinkSafeCompressor
public class ShrinkSafeCompressor
JavaScript Compression Implementation using Dojo ShrinkSafe.
| Constructor Summary | |
|---|---|
ShrinkSafeCompressor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
compressJavaScript(java.lang.String source)
Compress a JavaScript file to a smaller version of the original |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShrinkSafeCompressor()
throws java.lang.Exception
java.lang.Exception - Likely if YUI is present, and not ShrinkSafe| Method Detail |
|---|
public java.lang.String compressJavaScript(java.lang.String source)
throws java.lang.Exception
Compressor
compressJavaScript in interface Compressorsource - The script to compress
java.lang.Exception - The implementations of this interface are all likely to
have different things they can throw. We are going to catch Exception
anyway because we can continue (by using uncompressed scripts) so why
force implementors to nest to another exception type when we can just let
them use the original exception?
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||