public class ClosureCompressorPlugin extends BaseResourceCompressorPlugin
level init param:
basic encodes with the WHITESPACE_ONLY Closure levelsimple encodes with the SIMPLE_OPTIMIZATIONS Closure leveladvanced encodes with the ADVANCED_OPTIMIZATIONS Closure levellog| Constructor and Description |
|---|
ClosureCompressorPlugin(org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(Reader input,
Writer output)
Compress the specified input and produce compressed output.
|
String |
getLevel() |
ResourceType |
getResourceType()
Return resource type this plugin could compress.
|
void |
setLevel(String level) |
getPriority, getTypegetDescription, getName, setDescription, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic ClosureCompressorPlugin(org.exoplatform.container.xml.InitParams params)
public String getLevel()
public void setLevel(String level)
public ResourceType getResourceType()
ResourceCompressorPluginpublic void compress(Reader input, Writer output) throws ResourceCompressorException
ResourceCompressorPluginResourceCompressorExceptionCopyright © 2018 JBoss by Red Hat. All Rights Reserved.