org.nanoko.coffee.mill.processors
Class OptiPNGProcessor
java.lang.Object
org.nanoko.coffee.mill.processors.DefaultProcessor
org.nanoko.coffee.mill.processors.OptiPNGProcessor
- All Implemented Interfaces:
- Processor
public class OptiPNGProcessor
- extends DefaultProcessor
A processor optimizing PNG files using OptiPNG.
OptiPNG must be installed on the system and available from the path.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXECUTABLE_NAME
public static String EXECUTABLE_NAME
- The optipng executable file name without extension.
This field is not final for testing purpose.
OptiPNGProcessor
public OptiPNGProcessor()
configure
public void configure(AbstractCoffeeMillMojo mojo,
Map<String,Object> options)
- Specified by:
configure in interface Processor- Overrides:
configure in class DefaultProcessor
processAll
public void processAll()
throws Processor.ProcessorException
- Iterates over project resources and optimize all PNG files.
- Specified by:
processAll in interface Processor- Overrides:
processAll in class DefaultProcessor
- Throws:
ProcessorException
Processor.ProcessorException
accept
public boolean accept(File file)
- Specified by:
accept in interface Processor- Overrides:
accept in class DefaultProcessor
fileCreated
public void fileCreated(File file)
throws Processor.ProcessorException
- Specified by:
fileCreated in interface Processor- Overrides:
fileCreated in class DefaultProcessor
- Throws:
Processor.ProcessorException
fileUpdated
public void fileUpdated(File file)
throws Processor.ProcessorException
- Specified by:
fileUpdated in interface Processor- Overrides:
fileUpdated in class DefaultProcessor
- Throws:
Processor.ProcessorException
Copyright © 2012-2013 OW2. All Rights Reserved.