Package org.apache.sling.thumbnails
Interface Transformer
-
@ProviderType public interface TransformerTransforms a resource using the registered TransformationHandlers to invoke transformations on the file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransform(org.apache.sling.api.resource.Resource resource, Transformation transformation, OutputFileFormat format, OutputStream out)Transforms the resource
-
-
-
Method Detail
-
transform
void transform(org.apache.sling.api.resource.Resource resource, Transformation transformation, OutputFileFormat format, OutputStream out) throws IOExceptionTransforms the resource- Parameters:
resource- the resource to transformtransformation- the transformation to executeformat- the format of the stream to returnout- the OutputStream to which to write the transformed file- Throws:
IOException- an exception occurs transforming the resource
-
-