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