@ConsumerType
public interface ScriptCompiler
Compiler defines a generic compiler.| Modifier and Type | Method and Description |
|---|---|
void |
compile(java.util.Collection<ScriptResource> src,
java.io.Writer dst,
CompilerContext ctx)
Compiles a given collection of resources.
|
java.lang.String |
getMimeType()
Returns the mime type of the output file.
|
java.lang.String |
getName()
Name of this compiler.
|
java.lang.String |
getOutputExtension()
Returns the extension of the output file
|
boolean |
handles(java.lang.String extension)
Checks if this compiler handles the file with the given extension
|
java.lang.String getName()
boolean handles(java.lang.String extension)
extension - extension, eg 'less'true if this compiler handles the extensionjava.lang.String getMimeType()
java.lang.String getOutputExtension()
void compile(java.util.Collection<ScriptResource> src, java.io.Writer dst, CompilerContext ctx) throws java.io.IOException
src - resource to compiledst - writer to write the compiled outputctx - the compiler contextjava.io.IOException - of an I/O error occursCopyright © 2010 - 2023 Adobe. All Rights Reserved