@ConsumerType public interface ScriptProcessor
ScriptProcessor processes a script by minifying, obfuscating etc.| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_MINIFY
Name of the minify feature.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Name of this processor.
|
boolean |
handles(LibraryType type)
Checks if this processor can handle the give library type.
|
boolean |
process(LibraryType type,
ScriptResource source,
Writer output,
Map<String,String> options)
Processes the given input using the options.
|
static final String FEATURE_MINIFY
boolean handles(@Nonnull LibraryType type)
type - the typetrue if this processor handles the typeboolean process(@Nonnull LibraryType type, @Nonnull ScriptResource source, @Nonnull Writer output, @Nonnull Map<String,String> options) throws IOException
type - the library type to processsource - input sourceoutput - output writeroptions - processing options.true if the sources were processedIOException - if an I/O error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved