public class LessResourceTransformer extends java.lang.Object implements ResourceTransformer
@import, which isn't
supported by the normal WRO4J processor.| Constructor and Description |
|---|
LessResourceTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected com.github.sommeri.less4j.LessCompiler.CompilationResult |
compile(com.github.sommeri.less4j.LessCompiler compiler,
com.github.sommeri.less4j.LessSource lessSource)
Invoked from
transform(org.apache.tapestry5.ioc.Resource, org.apache.tapestry5.services.assets.ResourceDependencies)
to perform the actual work of compiling a Resource which has been wrapped as a
LessSource. |
ContentType |
getTransformedContentType()
Returns the MIME type of a transformed stream.
|
java.io.InputStream |
transform(Resource source,
ResourceDependencies dependencies)
Read the source input stream and provide a new input stream of the transformed content.
|
public LessResourceTransformer()
public ContentType getTransformedContentType()
ResourceTransformergetTransformedContentType in interface ResourceTransformerpublic java.io.InputStream transform(Resource source, ResourceDependencies dependencies) throws java.io.IOException
ResourceTransformertransform in interface ResourceTransformersource - input contentdependencies - allows additional dependencies of the source to be trackedjava.io.IOExceptionprotected com.github.sommeri.less4j.LessCompiler.CompilationResult compile(com.github.sommeri.less4j.LessCompiler compiler, com.github.sommeri.less4j.LessSource lessSource) throws com.github.sommeri.less4j.Less4jException
transform(org.apache.tapestry5.ioc.Resource, org.apache.tapestry5.services.assets.ResourceDependencies)
to perform the actual work of compiling a Resource which has been wrapped as a
LessSource.com.github.sommeri.less4j.Less4jException${project.version} - Copyright © 2003-2015 The Apache Software Foundation.