@Minimize @SupportedResourceType(value=JS) public class CJsonProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor
http://stevehanov.ca/blog/index.php?id=104.| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS_PACK |
static String |
ALIAS_UNPACK |
| Constructor and Description |
|---|
CJsonProcessor(boolean pack)
Private constructor, prevent instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
protected CJson |
newEngine() |
protected void |
onException(WroRuntimeException e)
Invoked when a processing exception occurs.
|
static CJsonProcessor |
packProcessor() |
void |
process(Reader reader,
Writer writer) |
void |
process(Resource resource,
Reader reader,
Writer writer) |
static CJsonProcessor |
unpackProcessor() |
public static final String ALIAS_PACK
public static final String ALIAS_UNPACK
public CJsonProcessor(boolean pack)
public static CJsonProcessor packProcessor()
public static CJsonProcessor unpackProcessor()
public void process(Resource resource, Reader reader, Writer writer) throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(WroRuntimeException e)
protected CJson newEngine()
CJson engine implementation. Override it to provide a different version of the json.hpack.js
library. Useful for upgrading the processor outside the wro4j release.public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionCopyright © 2008-2013. All Rights Reserved.