ro.isdc.wro.extensions.processor.support.packer
Class PackerJs
java.lang.Object
ro.isdc.wro.extensions.processor.support.packer.PackerJs
public class PackerJs
- extends Object
The underlying implementation use the packer.js version 3.1
utility from base2 project: ://code.google.com/p/base2/
.
- Since:
- 1.3.0
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackerJs
public PackerJs()
getStreamForBase2
protected InputStream getStreamForBase2()
- Override this method if you have a newer version of base2.js file.
- Returns:
- Stream for base2.js
getStreamForPacker
protected InputStream getStreamForPacker()
- Override this method if you have a newer version of packer.js file.
- Returns:
- Stream for packer.js
pack
public String pack(String data)
throws IOException
- Parameters:
data
- js content to process.
- Returns:
- packed js content.
- Throws:
IOException
buildPackScript
protected String buildPackScript(String data)
- Parameters:
data
- script to pack.
- Returns:
- Script used to pack and return the packed result.
Copyright © 2008-2013. All Rights Reserved.