@SupportedResourceType(value=JS) public class BeautifyJsProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS_BEAUTIFY |
| Constructor and Description |
|---|
BeautifyJsProcessor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected UglifyJs |
newEngine() |
protected void |
onException(WroRuntimeException e)
Invoked when a processing exception occurs.
|
void |
process(Reader reader,
Writer writer) |
void |
process(Resource resource,
Reader reader,
Writer writer) |
public static final String ALIAS_BEAUTIFY
public BeautifyJsProcessor()
public void process(Resource resource, Reader reader, Writer writer) throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(WroRuntimeException e)
public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionpublic void destroy()
throws Exception
destroy in interface DestroyableExceptionCopyright © 2008-2016. All Rights Reserved.