Package ro.isdc.wro.extensions.processor.support.packer

Examples of ro.isdc.wro.extensions.processor.support.packer.PackerJs


   */
  @Override
  public void process(final Resource resource, final Reader reader, final Writer writer)
    throws IOException {
    final String content = IOUtils.toString(reader);
    final PackerJs packerJs = enginePool.getObject();
    try {
      writer.write(packerJs.pack(content));
    } catch (final WroRuntimeException e) {
      onException(e);
      final String resourceUri = resource == null ? StringUtils.EMPTY : "[" + resource.getUri() + "]";
      LOG.warn("Exception while applying " + getClass().getSimpleName() + " processor on the " + resourceUri
          + " resource, no processing applied...", e);
View Full Code Here


  /**
   * @return PackerJs engine.
   */
  protected PackerJs newPackerJs() {
    return new PackerJs();
  }
View Full Code Here

TOP

Related Classes of ro.isdc.wro.extensions.processor.support.packer.PackerJs

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.