ro.isdc.wro.model.resource.processor.support
Class JSMin

java.lang.Object
  extended by ro.isdc.wro.model.resource.processor.support.JSMin

public class JSMin
extends Object

JsMin.java.

Copyright (c) 2006 John Reilly (www.inconspicuous.org) This work is a translation from C to Java of jsmin.c published by Douglas Crockford. Permission is hereby granted to use the Java version under the same conditions as the jsmin.c on which it is based.

http://www.crockford.com/javascript/jsmin.html

Author:
Alex Objelean

Constructor Summary
JSMin(InputStream in, OutputStream out)
           
 
Method Summary
 void jsmin()
          jsmin -- Copy the input to the output, deleting the characters which are insignificant to JavaScript.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSMin

public JSMin(InputStream in,
             OutputStream out)
Method Detail

jsmin

public void jsmin()
           throws IOException,
                  ro.isdc.wro.model.resource.processor.support.JSMin.UnterminatedRegExpLiteralException,
                  ro.isdc.wro.model.resource.processor.support.JSMin.UnterminatedCommentException,
                  ro.isdc.wro.model.resource.processor.support.JSMin.UnterminatedStringLiteralException
jsmin -- Copy the input to the output, deleting the characters which are insignificant to JavaScript. Comments will be removed. Tabs will be replaced with spaces. Carriage returns will be replaced with linefeeds. Most spaces and linefeeds will be removed.

Throws:
IOException
ro.isdc.wro.model.resource.processor.support.JSMin.UnterminatedRegExpLiteralException
ro.isdc.wro.model.resource.processor.support.JSMin.UnterminatedCommentException
ro.isdc.wro.model.resource.processor.support.JSMin.UnterminatedStringLiteralException


Copyright © 2008-2013. All Rights Reserved.