Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.webrender.util
Class JavaScriptCompressor

    java.lang.Object
      nextapp.echo2.webrender.util.JavaScriptCompressor

    public class JavaScriptCompressor

extends java.lang.Object

Compresses a String containing JavaScript by removing comments and whitespace.

Method Summary
`static java.lang.String` | `compress(java.lang.String script)` Compresses a String containing JavaScript by removing comments and whitespace.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### compress

    public static java.lang.String compress(java.lang.String script)

  Compresses a String containing JavaScript by removing comments and whitespace.

  Parameters:
    `script` - the String to compress
  Returns:
    a compressed version

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD