public class GoogleClosureMinimizer extends AbstractMinimizer
Compiler
used to minimize
a JavaScript resource.logger, tracker
Constructor and Description |
---|
GoogleClosureMinimizer(org.slf4j.Logger logger,
OperationTracker tracker,
AssetChecksumGenerator checksumGenerator,
Request request) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
doMinimize(StreamableResource resource)
Implemented in subclasses to do the actual work.
|
protected boolean |
isEnabled(StreamableResource resource)
Determines if the resource can be minimized.
|
minimize
public GoogleClosureMinimizer(org.slf4j.Logger logger, OperationTracker tracker, AssetChecksumGenerator checksumGenerator, Request request)
protected boolean isEnabled(StreamableResource resource)
AbstractMinimizer
isEnabled
in class AbstractMinimizer
protected InputStream doMinimize(StreamableResource resource) throws IOException
AbstractMinimizer
doMinimize
in class AbstractMinimizer
resource
- content to minimizeIOException
${project.version} - Copyright © 2003-2014 The Apache Software Foundation.