@Minimize @SupportedResourceType(value=JS) public class JsonHPackProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS_PACK |
static String |
ALIAS_UNPACK |
| Constructor and Description |
|---|
JsonHPackProcessor(boolean pack) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonHPack |
newEngine() |
protected void |
onException(WroRuntimeException e)
Invoked when a processing exception occurs.
|
static JsonHPackProcessor |
packProcessor() |
void |
process(Reader reader,
Writer writer) |
void |
process(Resource resource,
Reader reader,
Writer writer) |
static JsonHPackProcessor |
unpackProcessor() |
public static final String ALIAS_PACK
public static final String ALIAS_UNPACK
public static JsonHPackProcessor packProcessor()
public static JsonHPackProcessor unpackProcessor()
public void process(Resource resource, Reader reader, Writer writer) throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(WroRuntimeException e)
protected JsonHPack newEngine()
JsonHPack 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.