public class JpegFileOptimizer extends Object implements FileOptimizer
Modifier and Type | Class and Description |
---|---|
static interface |
JpegFileOptimizer.Config |
Constructor and Description |
---|
JpegFileOptimizer() |
Modifier and Type | Method and Description |
---|---|
void |
activate(JpegFileOptimizer.Config config) |
String |
getName()
Gets the name of the optimizer
|
byte[] |
optimizeFile(byte[] original,
String metaType)
Optimize a single file.
|
public void activate(JpegFileOptimizer.Config config)
public byte[] optimizeFile(byte[] original, String metaType)
FileOptimizer
optimizeFile
in interface FileOptimizer
original
- the original file to optimizemetaType
- the type of the file to optimizepublic String getName()
FileOptimizer
getName
in interface FileOptimizer
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.