juzu.plugin.asset

## Class NormalizeJSMinifier

- java.lang.Object
- - juzu.plugin.asset.NormalizeJSMinifier

- All Implemented Interfaces:
    Minifier

      public class NormalizeJSMinifier
      extends Object
      implements Minifier

  Author:
    Julien Viet

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NormalizeJSMinifier()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `minify(String name, String type, InputStream stream)` Minify an asset.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NormalizeJSMinifier

          public NormalizeJSMinifier()

  - ### Method Detail

    - #### minify

          public InputStream minify(String name,
                           String type,
                           InputStream stream)
                             throws IOException

      Description copied from interface: `Minifier`
      Minify an asset.
      Specified by:
        `minify` in interface `Minifier`
      Parameters:
        `name` - the asset value, for instance `jquery.js`
        `type` - the asset type: `script` or `stylesheet`
        `stream` - the asset stream
      Returns:
        a stream that will produce the asset
      Throws:
        `IOException` - any io exception that would prevent minification to happen

Copyright © 2016 eXo Platform SAS. All rights reserved.