public class ExternalJavaScriptCompressionHandler extends Object implements JavaScriptCompressionHandler
| Constructor and Description |
|---|
ExternalJavaScriptCompressionHandler() |
public ExternalJavaScriptCompressionHandler()
public void setCmd(String cmd)
cmd - The external cmd to execute. For example Node uglifyjs this would be "uglifyjs -".
The command must be able to accept JavaScript source as stdin and return output from stdout.public void compress(Reader reader, Writer writer) throws IOException
compress in interface JavaScriptCompressionHandlerIOExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.