NextApp Echo
App Container 1.1.4

nextapp.echoservlet.util
Class JavaScriptCompressor

java.lang.Object
  extended bynextapp.echoservlet.util.JavaScriptCompressor

public class JavaScriptCompressor
extends java.lang.Object

Compresses the size of JavaScript resource files by removing comments and white space.


Method Summary
static java.lang.String compress(java.lang.String script)
          Compresses a JavaScript file.
 
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 JavaScript file.

Parameters:
script - The contents of the JavaScript file as a String.
Returns:
A compressed version of the JavaScript file, with its comments and white space removed.

NextApp Echo
App Container 1.1.4