org.apache.wicket.util.string
Class JavascriptStripper

java.lang.Object
  extended by org.apache.wicket.util.string.JavascriptStripper

public class JavascriptStripper
extends Object

Strips comments and whitespace from javascript

Author:
Matej Knopp

Constructor Summary
JavascriptStripper()
           
 
Method Summary
static String stripCommentsAndWhitespace(String original)
          Removes javascript comments and whitespace from specified string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptStripper

public JavascriptStripper()
Method Detail

stripCommentsAndWhitespace

public static String stripCommentsAndWhitespace(String original)
Removes javascript comments and whitespace from specified string.

Parameters:
original - Source string
Returns:
String with removed comments and whitespace


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.