919293949596979899100101102103104105
writer.close(); } } private String doProcess(final String content) { final CJson engine = enginePool.getObject(); try { if (pack) { return engine.pack(content); } return engine.unpack(content); } finally { enginePool.returnObject(engine); } }
116117118119120121122
/** * @return the {@link 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. */ protected CJson newEngine() { return new CJson(); }