Package com.github.dandelion.core.utils

Examples of com.github.dandelion.core.utils.ReaderInputStream


  /**
   * {@inheritDoc}
   */
  @Override
  public void doProcess(Reader reader, Writer writer, ProcessingContext processingContext) throws Exception {
    InputStream is = new ReaderInputStream(reader, processingContext.getContext().getConfiguration()
        .getAssetProcessorEncoding());
    OutputStream os = new WriterOutputStream(writer, processingContext.getContext().getConfiguration()
        .getAssetProcessorEncoding());
    try {
      new JSMin(is, os).jsmin();
    }
    catch (Exception e) {
      throw e;
    }
    finally {
      is.close();
      os.close();
    }
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.core.utils.ReaderInputStream

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.