org.directwebremoting.impl
Class YahooJSCompressor

java.lang.Object
  extended by org.directwebremoting.impl.YahooJSCompressor
All Implemented Interfaces:
Compressor

public class YahooJSCompressor
extends java.lang.Object
implements Compressor

JavaScript Compression Implementation using the YUI Compressor.

Author:
David Marginian [david at butterdev dot com]

Constructor Summary
YahooJSCompressor()
          Constructor: YahooJSCompressor using default property values.
YahooJSCompressor(java.util.Map<java.lang.String,java.lang.Object> specifiedCompressorParameters)
          Constructor: YahooJSCompressor using the property map passed in.
 
Method Summary
 java.lang.String compressJavaScript(java.lang.String script)
          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

YahooJSCompressor

public YahooJSCompressor()
                  throws java.lang.InstantiationException
Constructor: YahooJSCompressor using default property values.

Throws:
java.lang.InstantiationException

YahooJSCompressor

public YahooJSCompressor(java.util.Map<java.lang.String,java.lang.Object> specifiedCompressorParameters)
                  throws java.lang.InstantiationException
Constructor: YahooJSCompressor using the property map passed in.

Parameters:
specifiedCompressorParameters -
Throws:
java.lang.InstantiationException
Method Detail

compressJavaScript

public java.lang.String compressJavaScript(java.lang.String script)
                                    throws java.io.IOException
Description copied from interface: Compressor
Compress a JavaScript file to a smaller version of the original

Specified by:
compressJavaScript in interface Compressor
Parameters:
script - The script to compress
Returns:
The compressed script
Throws:
java.io.IOException

Copyright 2008